Fix by having dir-locals.el a template

This solves a problem by having it overshadow the emacs lisp template.
This commit is contained in:
Howard Abrams 2023-12-18 17:16:45 -08:00
parent 641b69a241
commit a61b214239
3 changed files with 5 additions and 4 deletions

View file

@ -144,11 +144,11 @@ For some reason, you need [[https://github.com/Fanael/rainbow-identifiers][rainb
* RPG DM
Been working on my [[https://gitlab.com/howardabrams/emacs-rpgdm][RPG DM project]] for getting Emacs helping as a /Dungeon Master's Assistant/. The idea is to be able to roll dice and whatnot. What I find most useful is the [[https://gitlab.com/howardabrams/emacs-rpgdm/-/blob/main/rpgdm-tables.el][random tables]].
#+begin_src emacs-lisp
(when (f-directory? "~/other/rpgdm")
(when (f-directory? "~/other/emacs-rpgdm")
(use-package rpgdm
:straight (:local-repo "~/other/rpgdm")
:straight (:local-repo "~/other/emacs-rpgdm")
:commands (rpgdm-mode rpgdm-tables-load)
:init (setq rpgdm-base (expand-file-name "~/other/rpgdm"))
:init (setq rpgdm-base (expand-file-name "~/other/emacs-rpgdm"))
:config (ha-leader "t D" '("rpg dm" . rpgdm-mode))))
#+end_src

View file

@ -1777,6 +1777,7 @@ And since I'll be associating snippets with new files all over my configuration,
As an example of its use, any Org files loaded in /this project/ should insert my config file:
#+begin_src emacs-lisp
(ha-auto-insert-file (rx "hamacs/" (one-or-more any) ".org" eol) "hamacs-config")
(ha-auto-insert-file (rx ".dir-locals.el") "dir-locals.el")
#+end_src
*** Visual Replace with Visual Regular Expressions
I appreciated the [[https://github.com/benma/visual-regexp.el][visual-regexp package]] to see what you want to change /before/ executing the replace.
@ -1920,7 +1921,7 @@ While I don't /need/ all the features that [[https://github.com/bbatsov/projecti
"p C" '("compile in project" . projectile-compile-project)
"p c" '("recompile" . recompile)
"p d" '("remove known project" . projectile-remove-known-project)
"p e" '("edit project .dir-locals" . projectile-edit-dir-locals)
"p E" '("edit project .dir-locals" . projectile-edit-dir-locals)
"p f" '("find file in project" . projectile-find-file)
"p g" '("configure project" . projectile-configure-project)
"p i" '("invalidate project cache" . projectile-invalidate-cache)

0
templates/dir-locals.el Normal file
View file