From: Amin Bandali Date: Tue, 6 Aug 2019 00:16:24 +0000 (-0400) Subject: emacs: further clean ~/.emacs.d by moving more things to {var,etc}/ X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/65643ac862d8c98a970b36edcef58f83e05d31d4?ds=sidebyside;hp=92df6c4f9ba46287c07314eaddc18948c14e806f emacs: further clean ~/.emacs.d by moving more things to {var,etc}/ --- diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 6567cd5..56a7bd1 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -125,7 +125,9 @@ "Expand filename FILE relative to `b/var-dir'." (expand-file-name (convert-standard-filename file) b/var-dir)) -(setq auto-save-list-file-prefix (b/var "auto-save/sessions/")) +(setq + auto-save-list-file-prefix (b/var "auto-save/sessions/") + nsm-settings-file (b/var "nsm-settings.el")) ;; separate custom file (don't want it mixing with init.el) (use-package custom @@ -563,6 +565,9 @@ For disabling the behaviour for certain buffers and/or modes." (nconc magit-section-initial-visibility-alist '(([unpulled status] . show) ([unpushed status] . show))) + (setq transient-history-file (b/var "transient/history.el") + transient-levels-file (b/etc "transient/levels.el") + transient-values-file (b/etc "transient/values.el")) :custom (magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1) :custom-face (magit-diff-file-heading ((t (:weight normal))))) @@ -576,7 +581,9 @@ For disabling the behaviour for certain buffers and/or modes." (recentf-save-file (b/var "recentf-save.el"))) ;; smart M-x enhancement (needed by counsel for history) -(use-package smex) +(use-package smex + :config + (setq smex-save-file (b/var "smex-save.el"))) (use-package ivy :defer 0.3 @@ -1124,7 +1131,10 @@ For disabling the behaviour for certain buffers and/or modes." (eclim-executable "~/.p2/pool/plugins/org.eclim_2.8.0/bin/eclim") (eclim-eclipse-dirs '("~/usr/eclipse/dsl-2018-09/eclipse")))) -(use-package geiser) +(use-package geiser + :config + (make-directory (b/var "geiser/") t) + (setq geiser-repl-history-filename (b/var "geiser/repl-history"))) (use-package geiser-guile :config @@ -1277,6 +1287,7 @@ For disabling the behaviour for certain buffers and/or modes." :defer 0.5 :bind-keymap ("C-c P" . projectile-command-map) :config + (make-directory (b/var "projectile/") t) (projectile-mode) (defun b/projectile-mode-line-fun () @@ -1301,7 +1312,9 @@ For disabling the behaviour for certain buffers and/or modes." (advice-add 'magit-branch-and-checkout :after #'my-projectile-invalidate-cache))) :custom + (projectile-cache-file (b/var "projectile/cache.el")) (projectile-completion-system 'ivy) + (projectile-known-projects-file (b/var "projectile/known-projects.el")) (projectile-mode-line-prefix " proj")) (use-package helpful @@ -1466,7 +1479,9 @@ For disabling the behaviour for certain buffers and/or modes." ("c" . mc/edit-lines) ("n" . mc/mark-next-like-this) ("p" . mc/mark-previous-like-this) - ("a" . mc/mark-all-like-this)))) + ("a" . mc/mark-all-like-this))) + :config + (setq mc/list-file (b/var "mc-list.el"))) (comment ;; TODO @@ -1479,6 +1494,7 @@ For disabling the behaviour for certain buffers and/or modes." :config (defconst yas-verbosity-cur yas-verbosity) (setq yas-verbosity 2) + (setq yas-snippet-dirs (list (b/etc "yasnippet/snippets/"))) (add-to-list 'yas-snippet-dirs "~/src/git/guix/etc/snippets" t) (yas-reload-all) (setq yas-verbosity yas-verbosity-cur) @@ -1502,6 +1518,9 @@ For disabling the behaviour for certain buffers and/or modes." ;; (use-package fill-column-indicator) (use-package emojify + :config + (make-directory (b/var "emojify/") t) + (setq emojify-emojis-dir (b/var "emojify/")) :hook (erc-mode . emojify-mode)) (use-package window