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:
parent
7ec062a876
commit
5fc9903bac
|
@ -178,30 +178,6 @@
|
||||||
(ibuffer-do-sort-by-project-file-relative))))))
|
(ibuffer-do-sort-by-project-file-relative))))))
|
||||||
#+end_src
|
#+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
|
* Link hint keymaps
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package link-hint
|
(use-package link-hint
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
:diminish
|
:diminish
|
||||||
:config (global-page-break-lines-mode +1))
|
: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
|
;; add visual pulse when changing focus, like beacon but built-in
|
||||||
;; from from https://karthinks.com/software/batteries-included-with-emacs/
|
;; from from https://karthinks.com/software/batteries-included-with-emacs/
|
||||||
(defun pulse-line (&rest _)
|
(defun pulse-line (&rest _)
|
||||||
|
@ -117,6 +120,22 @@
|
||||||
"/*" "*/" "+++" "<!--" "<!---"))
|
"/*" "*/" "+++" "<!--" "<!---"))
|
||||||
(global-ligature-mode +1))
|
(global-ligature-mode +1))
|
||||||
#+end_src
|
#+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
|
* Window management
|
||||||
|
|
||||||
** windmove
|
** windmove
|
||||||
|
|
Loading…
Reference in a new issue