From 2a11b5e912448e24ecc22caf1384d1b5a5816161 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Fri, 3 Sep 2021 08:54:37 -0400 Subject: [PATCH] emacs: emoji & autosave --- config/doom.d/config.el | 11 ++++++++++- config/doom.d/init.el | 2 +- config/doom.d/packages.el | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/config/doom.d/config.el b/config/doom.d/config.el index bf54479..d772aca 100644 --- a/config/doom.d/config.el +++ b/config/doom.d/config.el @@ -25,7 +25,7 @@ ;; There are two ways to load a theme. Both assume the theme is installed and ;; available. You can either set `doom-theme' or manually load a theme with the ;; `load-theme' function. This is the default: -(setq doom-theme 'doom-monokai-classic) +(setq doom-theme 'doom-flatwhite) ;; 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! @@ -53,6 +53,15 @@ ;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how ;; they are implemented. +;; https://github.com/bbatsov/super-save +(use-package super-save + :ensure t + :config + (super-save-mode +1) + (setq super-save-auto-save-when-idle t + super-save-idle-duration 0.5) + ) + (after! markdown-mode (setq markdown-enable-wiki-links t) (setq markdown-link-space-sub-char " ") diff --git a/config/doom.d/init.el b/config/doom.d/init.el index 1f91d46..c95e0a8 100644 --- a/config/doom.d/init.el +++ b/config/doom.d/init.el @@ -30,7 +30,7 @@ doom ; what makes DOOM look the way it does doom-dashboard ; a nifty splash screen for Emacs doom-quit ; DOOM quit-message prompts when you quit Emacs - ;;(emoji +unicode) ; 🙂 + (emoji +github +unicode) ; 🙂 ;;fill-column ; a `fill-column' indicator hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW ;;hydra diff --git a/config/doom.d/packages.el b/config/doom.d/packages.el index b80e9cc..080b3bc 100644 --- a/config/doom.d/packages.el +++ b/config/doom.d/packages.el @@ -5,6 +5,8 @@ ;; on the command line, then restart Emacs for the changes to take effect -- or ;; use 'M-x doom/reload'. +(package! super-save) + ;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror: ;(package! some-package)