projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
92df6c4
)
emacs: further clean ~/.emacs.d by moving more things to {var,etc}/
author
Amin Bandali
<bandali@gnu.org>
Tue, 6 Aug 2019 00:16:24 +0000
(20:16 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Tue, 6 Aug 2019 00:16:24 +0000
(20:16 -0400)
.emacs.d/init.el
patch
|
blob
|
blame
|
history
diff --git
a/.emacs.d/init.el
b/.emacs.d/init.el
index
6567cd5
..
56a7bd1
100644
(file)
--- 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))
"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
;; 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)))
(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)))))
: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)
(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
(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"))))
(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
(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
: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 ()
(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
(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-completion-system 'ivy)
+ (projectile-known-projects-file (b/var "projectile/known-projects.el"))
(projectile-mode-line-prefix " proj"))
(use-package helpful
(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)
("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
(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)
: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)
(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
;; (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
:hook (erc-mode . emojify-mode))
(use-package window