summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAshley Duckworth2021-01-22 13:08:30 -0600
committerAshley Duckworth2021-01-22 13:08:30 -0600
commit84a497cc93ef8760c274afe5a801ded03a26a053 (patch)
tree54384f9118a97ab1ebcc11c4b92d93ad0718e3f2
parentFinally sort out the config.org/el loading thing (diff)
downloademacs-84a497cc93ef8760c274afe5a801ded03a26a053.tar.gz
emacs-84a497cc93ef8760c274afe5a801ded03a26a053.zip
Add smartparens
-rw-r--r--config.org43
1 files changed, 43 insertions, 0 deletions
diff --git a/config.org b/config.org index 8945ab1..409767e 100644 --- a/config.org +++ b/config.org
@@ -944,6 +944,49 @@ to auto-fill in programming modes, but /only/ the comments.
944 show-paren-style 'mixed) 944 show-paren-style 'mixed)
945#+end_src 945#+end_src
946 946
947*** Smart parens :package:
948
949#+begin_src emacs-lisp :noweb-ref packages
950 (straight-use-package 'smartparens)
951 (require 'smartparens-config)
952#+end_src
953
954**** Show parens
955
956#+begin_src emacs-lisp :noweb-ref settings
957 (setq-default sp-show-pair-delay 0
958 sp-show-pair-from-inside t)
959#+end_src
960
961#+begin_src emacs-lisp :noweb-ref hooks
962 (add-hook 'prog-mode-hook #'show-smartparens-mode)
963#+end_src
964
965**** Hide the =smartparens= lighter
966
967#+begin_src emacs-lisp :noweb-ref modes
968 (blackout 'smartparens-mode)
969#+end_src
970
971**** Be strict in =prog-mode=
972
973#+begin_src emacs-lisp :noweb-ref hooks
974 (add-hook 'prog-mode-hook #'smartparens-strict-mode)
975#+end_src
976
977** Formatting
978
979*** Aggressive indent :package:
980
981#+begin_src emacs-lisp :noweb-ref packages
982 (straight-use-package 'aggressive-indent)
983#+end_src
984
985#+begin_src emacs-lisp :noweb-ref modes
986 (global-aggressive-indent-mode +1)
987 (blackout 'aggressive-indent-mode)
988#+end_src
989
947** Executable scripts 990** Executable scripts
948 991
949This poorly-named function will make a file executable if it looks 992This poorly-named function will make a file executable if it looks