emacs: Tweak some settings
This commit is contained in:
parent
298a631de5
commit
2f49181212
1 changed files with 27 additions and 1 deletions
|
@ -331,12 +331,24 @@ Default indenting to spaces. If tabs are necessary, this can be set buffer-local
|
|||
(setq-default indent-tabs-mode nil)
|
||||
#+end_src
|
||||
|
||||
Show trailing whitespace
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq show-trailing-whitespace t)
|
||||
#+end_src
|
||||
|
||||
Delete trailing whitespace on save.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(add-hook 'before-save-hook 'delete-trailing-whitespace)
|
||||
#+end_src
|
||||
|
||||
Sentences end in one space, not two. We're not using typewriters.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq sentence-end-double-space nil)
|
||||
#+end_src
|
||||
|
||||
Don't move files to trash when deleting.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -361,10 +373,18 @@ Set fill column to 80
|
|||
(setq-default fill-column 80)
|
||||
#+end_src
|
||||
|
||||
Kill whole lines instead of clearing them
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq kill-whole-line t)
|
||||
#+end_src
|
||||
|
||||
* Interface
|
||||
** Easy edit config file
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
Disabled because the configuration is handled by Nix using [[https://github.com/nix-community/emacs-overlay][emacs-overlay]]
|
||||
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
(defun find-config ()
|
||||
"Edit config.org"
|
||||
(interactive)
|
||||
|
@ -376,6 +396,12 @@ Set fill column to 80
|
|||
#+end_src
|
||||
** Appearance
|
||||
|
||||
Enable pixel scrolling.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq pixel-scroll-precision-mode t)
|
||||
#+end_src
|
||||
|
||||
I prefer the [[https://draculatheme.com][dracula theme]]
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
|
Loading…
Reference in a new issue