diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-16 13:06:07 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-16 13:06:07 -0700 |
commit | 599bb6c1c689d9430915929f9ab2a4012167b244 (patch) | |
tree | b70818b516d78fec221e55e213ec5564bf4687fe /emacs/custom | |
parent | eshell: disable auto-completion (diff) | |
download | emacs.d-599bb6c1c689d9430915929f9ab2a4012167b244.tar.gz |
emacs: where to save state
Diffstat (limited to 'emacs/custom')
-rw-r--r-- | emacs/custom/my-git.el | 1 | ||||
-rw-r--r-- | emacs/custom/my-navigation.el | 1 | ||||
-rw-r--r-- | emacs/custom/my-prog.el | 2 | ||||
-rw-r--r-- | emacs/custom/my-settings.el | 7 | ||||
-rw-r--r-- | emacs/custom/my-tramp.el | 1 |
5 files changed, 11 insertions, 1 deletions
diff --git a/emacs/custom/my-git.el b/emacs/custom/my-git.el index 51648ec..5855590 100644 --- a/emacs/custom/my-git.el +++ b/emacs/custom/my-git.el @@ -30,6 +30,7 @@ :ensure t :after (magit) :custom + (forge-database-file (expand-file-name "var/forge-database.sqlite" user-emacs-directory)) (forge-topic-list-columns '(("#" 5 forge-topic-list-sort-by-number (:right-align t) number nil) ("Title" 60 t nil title nil) diff --git a/emacs/custom/my-navigation.el b/emacs/custom/my-navigation.el index 74cd293..7c09de6 100644 --- a/emacs/custom/my-navigation.el +++ b/emacs/custom/my-navigation.el @@ -10,6 +10,7 @@ :ensure t :bind-keymap ("C-c p" . project-prefix-map) :custom + (project-list-file (expand-file-name "var/projects" user-emacs-directory)) (project-switch-commands '((?f "File" project-find-file) (?d "Dired" project-dired) diff --git a/emacs/custom/my-prog.el b/emacs/custom/my-prog.el index ae3202b..f512a78 100644 --- a/emacs/custom/my-prog.el +++ b/emacs/custom/my-prog.el @@ -37,6 +37,8 @@ :ensure t :hook ((prog-mode org-mode dap-ui-repl-mode conf-mode) . yas-minor-mode) + :init + (setq yas-snippet-dirs (list (expand-file-name "etc/snippets" user-emacs-directory))) :config (yas-reload-all)) diff --git a/emacs/custom/my-settings.el b/emacs/custom/my-settings.el index 7e6d15d..04d0182 100644 --- a/emacs/custom/my-settings.el +++ b/emacs/custom/my-settings.el @@ -4,7 +4,7 @@ ;;; Code: (require 'use-package) -(defvar my/custom-settings (expand-file-name "emacs-custom.el" user-emacs-directory) +(defvar my/custom-settings (expand-file-name "var/emacs-custom.el" user-emacs-directory) "Path to Emacs custom variables.") ;; set utf-8 as the default encoding @@ -46,6 +46,11 @@ user-mail-address "franck@fcuny.net" add-log-mailing-address "franck@fcuny.net") +(setq savehist-file (expand-file-name "var/history" user-emacs-directory)) +(setq url-history-file (expand-file-name "var/url-history" user-emacs-directory)) +(setq bookmark-file (expand-file-name "var/bookmarks" user-emacs-directory)) +(setq url-cookie-file (expand-file-name "var/cookies" user-emacs-directory)) + ;; delete buffers that have not been displayed in the last 3 days (use-package midnight :config diff --git a/emacs/custom/my-tramp.el b/emacs/custom/my-tramp.el index 9854dab..02d32f1 100644 --- a/emacs/custom/my-tramp.el +++ b/emacs/custom/my-tramp.el @@ -8,6 +8,7 @@ :custom (tramp-default-method "ssh") (tramp-histfile-override t) + (tramp-persistency-file-name (expand-file-name "var/tramp" user-emacs-directory)) (tramp-ssh-controlmaster-options "-o ControlMaster=auto -o ControlPath='tramp.%%C'")) |