Skip to content

Commit aef1666

Browse files
committed
emacs update
1 parent 2984f98 commit aef1666

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

editor/debugging/dap.org

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@
5454
- https://silosneeded.com/en/2024/04/configuring-dape
5555

5656
- Example node.js https://github.com/Artawower/org-mode-ast/blob/4a3997e5204cc70863e1b5e010f66f99331639e8/.dir-locals.el#L27
57+
58+
** Symbols
59+
60+
- command: Shell command to initiate the debug adapter.
61+
- command-args: List of string arguments for the command.
62+
- command-cwd: Working directory for the command, if not supplied
63+
`default-directory' will be used.
64+
- command-env: Property list (plist)
65+
5766
** DAP C - gdbserver
5867
https://github.com/luksamuk/engine-psx/blob/22ebbb293ecea31692443dd92918d6f8bdb8e77b/.dir-locals.el#L14
5968
#+begin_src elisp

editor/emacs.org

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,46 @@
1919
- exporters
2020
- groff https://orgmode.org/worg/exporters/ox-groff.html
2121

22+
* per file variables
23+
24+
#+begin_src
25+
-*- mode: modename; var: value; … -*-
26+
#+end_src
27+
28+
#+begin_src lisp
29+
;; -*- mode: Lisp; fill-column: 75; comment-column: 50; -*-
30+
#+end_src
31+
32+
* .dir-locals.el
33+
34+
- https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html
35+
36+
- commands
37+
- customize-dirlocals
38+
- add-dir-local-variable
39+
- delete-dir-local-variable
40+
- copy-file-locals-to-dir-locals
41+
42+
- keys
43+
- nil: for all
44+
- foo-mode: for foo-mode
45+
- "foo/bar": for "foo/bar" subdirectory
46+
47+
- variable special keys
48+
- mode: to enable given mode
49+
- subdirs: use "nil" to disable block on subdirs
50+
51+
#+begin_src elisp
52+
((nil . ((indent-tabs-mode . t)
53+
(fill-column . 80)
54+
(mode . auto-fill)))
55+
(c-mode . ((c-file-style . "BSD")
56+
(subdirs . nil)))
57+
("src/imported"
58+
. ((nil . ((change-log-default-name
59+
. "ChangeLog.local"))))))
60+
#+end_src
61+
2262
* configs
2363
- full https://eshelyaron.com/esy.html
2464
- full https://github.com/higham/dot-emacs/blob/3bc53cce471ec9f6b4b08fb5b32ad19761468d42/.emacs#L3123

0 commit comments

Comments
 (0)