diff options
author | Alan Pearce | 2017-04-21 20:35:24 +0200 |
---|---|---|
committer | Alan Pearce | 2017-04-21 20:35:24 +0200 |
commit | 967dc8a329804a7b3517a34a4b6c35f11ed9edc4 (patch) | |
tree | b21cf88bd8f4a1cda6ad2a92981d55468dbe0746 | |
parent | 236bcfdf73cbd7277fbfd3fda2045143819c01bd (diff) | |
download | dotfiles-967dc8a329804a7b3517a34a4b6c35f11ed9edc4.tar.lz dotfiles-967dc8a329804a7b3517a34a4b6c35f11ed9edc4.tar.zst dotfiles-967dc8a329804a7b3517a34a4b6c35f11ed9edc4.zip |
Emacs: Use one projects directory
-rw-r--r-- | emacs/.emacs.d/init.org | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 43a861d..e7cbedc 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -430,14 +430,13 @@ configuration with crux.el * Projects #+BEGIN_SRC emacs-lisp -(defvar work-project-directory "~/work") -(defvar home-project-directory "~/projects") +(defvar projects-root-directory "~/projects") #+END_SRC #+BEGIN_SRC emacs-lisp (defun switch-to-dotfiles () (interactive) - (projectile-switch-project-by-name (expand-file-name "~/dotfiles"))) + (projectile-switch-project-by-name (expand-file-name "~/projects/git.alanpearce.uk/alan/dotfiles/"))) #+END_SRC ** The Silver Searcher @@ -515,13 +514,9 @@ based upon some folder conventions I use. (projectile-with-default-dir (projectile-project-root) (cmd-to-echo "yarn" (concat "run " cmd)))) - (defun ap/open-work-project (&optional arg) + (defun ap/open-project (&optional arg) (interactive "P") - (ap/open-subfolder-project work-project-directory arg)) - - (defun ap/open-home-project (&optional arg) - (interactive "P") - (ap/open-subfolder-project home-project-directory arg)) + (ap/open-subfolder-project projects-root-directory arg)) (setq projectile-switch-project-action #'projectile-commander projectile-completion-system 'ivy))) |