From eda3c82658114ad17703dd9b02d46b79ce3d8ade Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 4 Dec 2019 04:43:02 +0100 Subject: [PATCH] Add quality of life misc config --- config.el | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/config.el b/config.el index 470e24f..11712bb 100644 --- a/config.el +++ b/config.el @@ -7,3 +7,20 @@ (setq doom-theme 'doom-city-lights) ;; Start maximized (add-to-list 'default-frame-alist '(fullscreen . maximized)) +;; Set projects directories +(setq projectile-project-search-path '("~/Sync/Projects")) +;; Close compilation buffer if it went well +(setq compilation-finish-function + (lambda (buf str) + (if (null (string-match ".*exited abnormally.*" str)) + (progn + (run-at-time + "1 sec" nil 'delete-windows-on + (get-buffer-create "*compilation*")) + (message "No Compilation Errors!"))))) +; Auto cleanup recentf +(setq recentf-auto-cleanup 180) +; Save backup files to ~/.cache and autosave files to ~/.cache/emacs +(setq backup-directory-alist `(("." . "~/.cache"))) +(setq auto-save-list-file-prefix + (concat "~/.cache/emacs"))