Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting a local file variable in Emacs org-mode

Tags:

In a particular org-mode file, I do not want tags to be inherited. I thought putting -*- org-use-tag-inheritance: nil for the first line would do the trick, but that doesn't seem to be working. Short of manually executing a setq statement, how can I make this happen?

like image 372
Brian Z Avatar asked Nov 17 '13 16:11

Brian Z


2 Answers

You're missing a trailing -*- in the header comment.

Try this:

# -*- org-use-tag-inheritance: nil; -*- 

n.b. It's easy to check whether local variables were actually set the way you expected -- just use C-h v VAR for the VAR in question, and Emacs tells you if it has a buffer-local value.

like image 95
phils Avatar answered Sep 22 '22 17:09

phils


I prefer the setting in-buffer lisp variables at the file end, like this:

* Local variables # local variables: # org-attach-directory: "./data" # org-id-method: uuid # end: 
like image 42
Dieter.Wilhelm Avatar answered Sep 21 '22 17:09

Dieter.Wilhelm