emacs: Tweaks

- disable smartparens in favour of electric-pair-mode
- stop eglot from logging so much
- add dhall-mode
This commit is contained in:
Erwin Boskma 2023-09-06 16:56:52 +02:00
parent 5a94b93c35
commit 9ddb1f47af
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -764,9 +764,9 @@ Enable =magit= integration
** General settings ** General settings
Auto balance parenthesese. Auto balance parenthesese. *Note:* Switched to =electric-pair-mode=
#+begin_src emacs-lisp #+begin_src emacs-lisp :tangle no
(use-package smartparens (use-package smartparens
:ghook 'prog-mode-hook) :ghook 'prog-mode-hook)
#+end_src #+end_src
@ -1013,6 +1013,7 @@ Visualise git changes in the gutter, next to the line numbers
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package eglot (use-package eglot
:config :config
(fset #'json--log-event #'ignore) ;; Performance boost by not logging every event
(add-to-list 'eglot-server-programs (add-to-list 'eglot-server-programs
'(conf-toml-mode . ("taplo" "lsp" "stdio"))) '(conf-toml-mode . ("taplo" "lsp" "stdio")))
(add-to-list 'eglot-server-programs (add-to-list 'eglot-server-programs
@ -1574,6 +1575,15 @@ jinja2
turn-on-haskell-unicode-input-method)) turn-on-haskell-unicode-input-method))
#+end_src #+end_src
*** Dhall
Dhall is a programmable configuration language that you can think of as: JSON + functions + types + imports
#+begin_src emacs-lisp
(use-package dhall-mode
:mode "\\.dhall\\'")
#+end_src
* Org * Org
** Main org setup ** Main org setup