Enable electric-pair-mode for better paren support

Move whitespace config from defaults.org to ui.org, configure based on
what was in the crafted config
This commit is contained in:
Evie Litherland-Smith 2024-02-15 13:52:07 +00:00
parent 7ec062a876
commit 5fc9903bac
2 changed files with 19 additions and 24 deletions

View file

@ -178,30 +178,6 @@
(ibuffer-do-sort-by-project-file-relative))))))
#+end_src
* whitespace-mode
#+begin_src emacs-lisp
(use-package whitespace
:custom
(whitespace-action '(report-on-bogus
cleanup
warn-if-read-only))
(whitespace-style '(face
trailing
tabs
spaces
lines-tail
newline
missing-newline-at-eof
empty
indentation
big-indent
space-after-tab
space-before-tab
space-mark
tab-mark
newline-mark)))
#+end_src
* Link hint keymaps
#+begin_src emacs-lisp
(use-package link-hint

View file

@ -30,6 +30,9 @@
:diminish
:config (global-page-break-lines-mode +1))
(electric-pair-mode +1)
(show-paren-mode +1)
;; add visual pulse when changing focus, like beacon but built-in
;; from from https://karthinks.com/software/batteries-included-with-emacs/
(defun pulse-line (&rest _)
@ -117,6 +120,22 @@
"/*" "*/" "+++" "<!--" "<!---"))
(global-ligature-mode +1))
#+end_src
** Whitespace mode
#+begin_src emacs-lisp
(use-package whitespace
:init
(global-whitespace-mode +1)
:custom
(whitespace-style '(face
empty
trailing
tab-mark
indentation::space))
(whitespace-action '(report-on-bogus
cleanup
auto-cleanup)))
#+end_src
* Window management
** windmove