From e0a82c3a049c916021311adbe8177f48121e8b7d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 3 Jan 2021 20:15:02 +0100 Subject: gkleen@sif: emacs ligatures --- accounts/gkleen@sif/emacs.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'accounts/gkleen@sif/emacs.el') diff --git a/accounts/gkleen@sif/emacs.el b/accounts/gkleen@sif/emacs.el index ce97c81b..92a79910 100644 --- a/accounts/gkleen@sif/emacs.el +++ b/accounts/gkleen@sif/emacs.el @@ -6,9 +6,11 @@ (require 'evil) (evil-mode 1) +(setq evil-undo-system 'undo-tree) (global-subword-mode) (global-undo-tree-mode) +(global-fira-code-mode) (global-set-key (kbd "RET") 'newline-and-indent) (global-set-key (kbd "M-g") 'magit-status) @@ -20,6 +22,14 @@ kept-old-versions 2 version-control t) +(setq undo-tree-visualizer-timestamps t + undo-tree-visualizer-diff t + ;; 10X bump of the undo limits to avoid issues with premature + ;; Emacs GC which truncages the undo history very aggresively + undo-limit 800000 + undo-strong-limit 12000000 + undo-outer-limit 120000000) + (add-hook 'haskell-mode-hook 'haskell-indentation-mode) (add-hook 'haskell-mode-hook 'subword-mode) (add-hook 'haskell-mode-hook 'highlight-symbol-mode) @@ -33,6 +43,8 @@ ) (add-hook 'js-mode-hook 'my-js-mode-hook) +(setq undo-tree-auto-save-history t) + (setq notmuch-address-internal-completion '(received nil)) (setq notmuch-always-prompt-for-sender t) (setq notmuch-command "notmuch-ssh") -- cgit v1.2.3