From 4c78c8609ccc4571257229a22364fde74f8cdeb2 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Fri, 19 Jul 2024 08:21:51 +1200 Subject: [PATCH] emacs: move undo-tree underneath modes --- .emacs.d/init.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 8489c40..3585147 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -13,10 +13,6 @@ (global-hl-line-mode) (column-number-mode) -;; undo-tree -(package-install 'undo-tree) -(global-undo-tree-mode) - ;; basic key binds (global-set-key (kbd "C-`") 'other-window) (global-set-key (kbd "C-c c") 'compile) @@ -116,6 +112,10 @@ One will be created if none exist." (font-lock-add-keywords 'd-mode '(("\\<\\(bool\\|byte\\|ubyte\\|char\\|delegate\\|double\\|float\\|function\\|int\\|long\\|short\\|uint\\|ulong\\|ushort\\|cent\\|ucent\\|real\\|ireal\\|idouble\\|ifloat\\|creal\\|cfloat\\|cdouble\\|wchar\\|dchar\\|void\\|string\\|wstring\\|dstring\\|__vector\\|Runtime\\|Thread\\)\\>" . 'font-lock-type-face))) +;; undo-tree +(package-install 'undo-tree) +(global-undo-tree-mode) + ;; highlight colours (package-install 'rainbow-mode) (add-hook 'prog-mode-hook 'rainbow-mode)