0

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!

3

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? – Emmanuel Goldstein Feb 14 '18 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. – jpkotta Feb 14 '18 at 20:43
  • @EmmanuelGoldstein #+STARTUP has nothing to do with commands and is Org-specific. See (org) In-buffer settings. – Basil Feb 14 '18 at 21:10
  • Note also that Emacs 26 comes with native line numbering which can be enabled with just # -*- display-line-numbers: t -*-. – Basil Feb 14 '18 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.