From 4994b56a003b45f7fa2b2136b0a2757455ef5a88 Mon Sep 17 00:00:00 2001 From: oreodave Date: Sun, 25 Aug 2019 21:30:51 +0100 Subject: +Advanced workflow for tag generation Uses a global list to build tag generation command string --- doom.d/config.org | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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")) -- cgit v1.2.3-13-gbd6f