I wonder if it is possible to set #+STARTUP: linum-mode t or similar at the start of the buffer (not interested in the global mode). I have tried this but it won't work. Any solution? Thanks!
1 Answer
At the top of the buffer:
# -*- eval: (linum-mode 1) -*-
https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html
-
Thanks, it works perfect! So I guess not all commands can be used with#+startup? Commented Feb 14, 2018 at 20:24
-
I'm not a big org user (I know I should); I don't know anything about
#+startup
. This is just general file local variables.– jpkottaCommented Feb 14, 2018 at 20:43 -
@EmmanuelGoldstein
#+STARTUP
has nothing to do with commands and is Org-specific. See(org) In-buffer settings
.– BasilCommented Feb 14, 2018 at 21:10 -
Note also that Emacs 26 comes with native line numbering which can be enabled with just
# -*- display-line-numbers: t -*-
.– BasilCommented Feb 14, 2018 at 21:12
org-mode
question? If not, have you tried file-local variables? gnu.org/software/emacs/manual/html_node/emacs/…