forked from atlas-engineer/nyxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dir-locals.el
30 lines (30 loc) · 1.42 KB
/
.dir-locals.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
((nil . ((fill-column . 80)))
(org-mode . ((org-edit-src-content-indentation 0)))
(lisp-mode
. ((eval . (cl-flet ((enhance-imenu-lisp
(&rest keywords)
(dolist (keyword keywords)
(add-to-list
'lisp-imenu-generic-expression
(list (purecopy (concat (capitalize keyword)
(if (string= (substring-no-properties keyword -1) "s")
"es"
"s")))
(purecopy (concat "^\\s-*("
(regexp-opt
(list (concat "define-" keyword))
t)
"\\s-+\\(" lisp-mode-symbol-regexp "\\)"))
2)))))
;; This adds the argument to the list of imenu known keywords.
(enhance-imenu-lisp
"bookmarklet-command"
"class"
"command"
"ffi-method"
"function"
"internal-page-command"
"internal-page-command-global"
"mode"
"parenscript"
"user-class"))))))