+Advanced workflow for tag generation
Uses a global list to build tag generation command string
This commit is contained in:
@@ -19,7 +19,6 @@ become my C one soon!
|
|||||||
* Global variables
|
* Global variables
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq doom-localleader-key ",")
|
(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 warning-minimum-level :emergency)
|
||||||
(setq completion-ignore-case t)
|
(setq completion-ignore-case t)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
@@ -77,6 +76,18 @@ I like monokai :)
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Custom
|
* Custom
|
||||||
** Packages and functionality
|
** 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
|
*** Wakatime
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq wakatime-api-key (shell-command-to-string "pass Keys/Wakatime"))
|
(setq wakatime-api-key (shell-command-to-string "pass Keys/Wakatime"))
|
||||||
|
|||||||
Reference in New Issue
Block a user