Emacs: truncate lines and make olivetti place nice
This commit is contained in:
parent
31098a4542
commit
ea3d87b65f
@ -361,6 +361,12 @@ Use Dashboard.el. First load `all-the-icons` for nicer rendering
|
|||||||
(global-set-key (kbd "C-x x o") 'olivetti-mode)
|
(global-set-key (kbd "C-x x o") 'olivetti-mode)
|
||||||
(add-hook 'prog-mode-hook 'olivetti-mode)
|
(add-hook 'prog-mode-hook 'olivetti-mode)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Remove this hook from Olivetti so that lines can truncate [[https://github.com/rnkn/olivetti/issues/76][Github issue]]
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(remove-hook 'olivetti-mode-on-hook 'visual-line-mode)
|
||||||
|
#+end_src
|
||||||
*** Themes
|
*** Themes
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
@ -539,7 +545,6 @@ Ligatures... are they that useful?
|
|||||||
(setq-default line-spacing 5)
|
(setq-default line-spacing 5)
|
||||||
(setq indent-line-function #'indent-relative)
|
(setq indent-line-function #'indent-relative)
|
||||||
|
|
||||||
(set-default 'truncate-lines nil)
|
|
||||||
;; (add-hook 'before-save-hook 'whitespace-cleanup)
|
;; (add-hook 'before-save-hook 'whitespace-cleanup)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Text Editor
|
** Text Editor
|
||||||
@ -590,6 +595,8 @@ Emacs is an great operating system, if only it had a good text editor...
|
|||||||
(global-set-key (kbd "M-o") #'joe/insert-line-below)
|
(global-set-key (kbd "M-o") #'joe/insert-line-below)
|
||||||
(global-set-key (kbd "M-O") #'joe/insert-line-above)
|
(global-set-key (kbd "M-O") #'joe/insert-line-above)
|
||||||
|
|
||||||
|
(setq-default truncate-lines t)
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Stole this from [[https://github.com/purcell/unfill/][Purcell]] but didn't feel like making it a package depencendy
|
Stole this from [[https://github.com/purcell/unfill/][Purcell]] but didn't feel like making it a package depencendy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user