From 9ddb1f47af388201b45a7650b16b87dcf92cb623 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Wed, 6 Sep 2023 16:56:52 +0200 Subject: [PATCH] emacs: Tweaks - disable smartparens in favour of electric-pair-mode - stop eglot from logging so much - add dhall-mode --- home-manager/modules/emacs/config.org | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 3cbf662..a21cfbe 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -764,9 +764,9 @@ Enable =magit= integration ** 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 :ghook 'prog-mode-hook) #+end_src @@ -1013,6 +1013,7 @@ Visualise git changes in the gutter, next to the line numbers #+begin_src emacs-lisp (use-package eglot :config + (fset #'json--log-event #'ignore) ;; Performance boost by not logging every event (add-to-list 'eglot-server-programs '(conf-toml-mode . ("taplo" "lsp" "stdio"))) (add-to-list 'eglot-server-programs @@ -1574,6 +1575,15 @@ jinja2 turn-on-haskell-unicode-input-method)) #+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 ** Main org setup