From f80dd380349ae0e8a44cb9774b5139f070c8d313 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Thu, 28 Sep 2023 16:42:58 -0300 Subject: Added function to compare init files in doom emacs --- .config/doom/config.el | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.config/doom/config.el') diff --git a/.config/doom/config.el b/.config/doom/config.el index de624042..1b35e6f8 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -49,6 +49,15 @@ '(font-lock-keyword-face :slant italic)) (setq doom-theme 'doom-badger) +;; Update init file +(defun doom/ediff-init-and-example () + "ediff the current `init.el' with the example in doom-emacs-dir" + (interactive) + (ediff-files (concat doom-private-dir "init.el") + (concat doom-emacs-dir "templates/init.example.el"))) + +(define-key! help-map "di" #'doom/ediff-init-and-example) + ;; If you use `org' and don't want your org files in the default location below, ;; change `org-directory'. It must be set before org loads! (setq org-directory "~/org/") @@ -493,3 +502,4 @@ text and copying to the killring." (add-hook 'typescript-mode-hook #'setup-tide-mode) (add-hook 'typescript-ts-mode-hook #'setup-tide-mode) +(add-hook 'typescript-tsx-mode-hook #'setup-tide-mode) -- cgit v1.2.3