diff options
author | oreodave <aryadevchavali1@gmail.com> | 2019-08-25 21:30:51 +0100 |
---|---|---|
committer | oreodave <aryadevchavali1@gmail.com> | 2019-08-25 21:30:51 +0100 |
commit | 4994b56a003b45f7fa2b2136b0a2757455ef5a88 (patch) | |
tree | 760d9df85b635a694a4308c8be1791b942371048 /doom.d/config.org | |
parent | 60e2eb8af015431fa266bbe77baf53764f5291d0 (diff) | |
download | dotfiles-4994b56a003b45f7fa2b2136b0a2757455ef5a88.tar.gz dotfiles-4994b56a003b45f7fa2b2136b0a2757455ef5a88.tar.bz2 dotfiles-4994b56a003b45f7fa2b2136b0a2757455ef5a88.zip |
+Advanced workflow for tag generation
Uses a global list to build tag generation command string
Diffstat (limited to 'doom.d/config.org')
-rw-r--r-- | doom.d/config.org | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doom.d/config.org b/doom.d/config.org index da06d90..eab605b 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -19,7 +19,6 @@ become my C one soon! * Global variables #+BEGIN_SRC emacs-lisp (setq doom-localleader-key ",") -(setq projectile-tags-command "exctags -Re --exclude=Makefile --exclude=node_modules --exclude=bin --exclude=obj --exclude=dist") (setq warning-minimum-level :emergency) (setq completion-ignore-case t) #+END_SRC @@ -77,6 +76,18 @@ I like monokai :) #+END_SRC * Custom ** Packages and functionality +*** Projectile +#+BEGIN_SRC emacs-lisp +(after! projectile + (setq oreodave-tags-alist '("Makefile" "node_modules" "bin" "dist" "obj" "'*.json'")) + (defun oreodave/config/construct-tags () + (setq projectile-tags-command (reduce (lambda (x y) (concat x y)) (mapcar (lambda (i) (concat " --exclude=" i)) oreodave-tags-alist) + :initial-value "exctags -Re ")) + ) + (setq projectile-tags-command (oreodave/config/construct-tags)) + ) +#+END_SRC +Really simple, just want to set projectile-tags-command when projectile has loaded *** Wakatime #+BEGIN_SRC emacs-lisp (setq wakatime-api-key (shell-command-to-string "pass Keys/Wakatime")) |