|
|
@ -38,9 +38,14 @@ customize settings in [[file:init.el][init.el]]. |
|
|
|
(load custom-file) |
|
|
|
#+end_src |
|
|
|
|
|
|
|
Keep the .emacs.d clean by moving user files into a separate dir |
|
|
|
Keep the .emacs.d clean by moving user files into separate directories. |
|
|
|
- user-local: directory for machine specific files |
|
|
|
- user-global: directory for files which work on any machine |
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
(setq bookmark-default-file "~/.emacs.d/user-dir/bookmarks") |
|
|
|
(defvar PATH_USER_LOCAL (expand-file-name "~/.emacs.d/user-local/")) |
|
|
|
(defvar PATH_USER_GLOBAL (expand-file-name "~/.emacs.d/user-global/")) |
|
|
|
(setq bookmark-default-file (concat PATH_USER_LOCAL "bookmarks")) ;"~/.emacs.d/user-dir/bookmarks") |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
|
@ -883,7 +888,7 @@ Addon to sort suggestions by usage |
|
|
|
:ensure t |
|
|
|
:after company |
|
|
|
:init |
|
|
|
(setq company-statistics-file "~/.emacs.d/user-dir/company-statistics-cache.el") |
|
|
|
(setq company-statistics-file (concat PATH_USER_LOCAL "company-statistics-cache.el"));~/.emacs.d/user-dir/company-statistics-cache.el") |
|
|
|
:config |
|
|
|
(company-statistics-mode 1) |
|
|
|
) |
|
|
@ -917,9 +922,8 @@ Maybe add [[https://github.com/hlissner/emacs-company-dict][company-dict]]? It's |
|
|
|
("C-c p s s" . projectile-ag)) |
|
|
|
:init |
|
|
|
(setq-default |
|
|
|
projectile-cache-file (expand-file-name ".projectile-cache" user-emacs-directory) |
|
|
|
projectile-known-projects-file (expand-file-name |
|
|
|
".projectile-bookmarks" user-emacs-directory)) |
|
|
|
projectile-cache-file (concat PATH_USER_LOCAL ".projectile-cache") |
|
|
|
projectile-known-projects-file (concat PATH_USER_LOCAL ".projectile-bookmarks")) |
|
|
|
:config |
|
|
|
(projectile-mode t) |
|
|
|
(setq-default |
|
|
@ -937,7 +941,7 @@ Maybe add [[https://github.com/hlissner/emacs-company-dict][company-dict]]? It's |
|
|
|
:ensure t |
|
|
|
:diminish yas-minor-mode |
|
|
|
:init |
|
|
|
(setq yas-snippet-dirs (concat user-emacs-directory "user-dir/snippets")) |
|
|
|
(setq yas-snippet-dirs (concat PATH_USER_GLOBAL "snippets")) |
|
|
|
(yas-global-mode t) |
|
|
|
:mode ("\\.yasnippet" . snippet-mode) |
|
|
|
; :config |
|
|
|