I have a directory that is all little shell code snippets for being sourced.
Tried creating an auto-mode-alist, that does not seem to be effective, so tried creating a .dir-locals.el thusly:
((nil . ((mode . sh))))
which does indeed, set the mode of all files to sh-mode.
However, now cannot run dired, get this message:
dired-readin: Wrong type argument: stringp, nil
What should I do to allow dired to run normally in this dir?
Or, to rephrase the question, can specific files, not subdirs be specified, so as to only apply to those files? IOW, not dot files?
This was the auto-mode-alist attempt:
(defvar home-lib `,(concat (substitute-in-file-name "$HOME/lib") "/.*\\'") "Regexp for auto-mode-alist to find anything in ~/lib to be a sh-mode file.") (add-to-list 'auto-mode-alist `(,home-lib . sh-mode))