emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* using #+BIND:
@ 2015-01-31 19:31 Matt Price
  2015-01-31 19:56 ` Eric S Fraga
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Price @ 2015-01-31 19:31 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 978 bytes --]

Hi Everyone,

I have a variable I would like to set on a per-file basis.  My readingof
the documentation suggests I should use the

#+BIND:

keyword to do this.

So, I have set org-export-with-todo-keywords to non-nil.  In my buffer I
put:

#+BIND: org-zotxt-link-description-stylqe :citation

and then execute org-reload. The defcustom for this variable reads as
follows:

(defcustom org-zotxt-link-description-style
  :citation
  "Style to use for org zotxt link texts."
  :group 'org-zotxt
  :type '(choice (const :tag "easykey" :easykey)
                 (const :tag "better BibTeX" :betterbibtexkey)
                 (const :tag "citation" :citation)))

However, the output of describe-variable org-zotxt-link-description-style
is

org-zotxt-link-description-style is a variable defined in `org-zotxt.el'.
Its value is :easykey
Original value was :citation

Does BIND only work during export? If so, is there a better way to add a
local variable to a buffer?

Thanks,
Matt

[-- Attachment #2: Type: text/html, Size: 1488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: using #+BIND:
  2015-01-31 19:31 using #+BIND: Matt Price
@ 2015-01-31 19:56 ` Eric S Fraga
  2015-02-02  1:07   ` Matt Price
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2015-01-31 19:56 UTC (permalink / raw)
  To: Matt Price; +Cc: Org Mode

On Saturday, 31 Jan 2015 at 14:31, Matt Price wrote:

[...]

> Does BIND only work during export? If so, is there a better way to add a
> local variable to a buffer?

My understanding is that BIND does indeed only work during export.  For
local variable setting, why not use Emacs's own methods:

[[info:emacs#File%20Variables][info:emacs#File Variables]]


-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-750-gb6fce5.dirty

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: using #+BIND:
  2015-01-31 19:56 ` Eric S Fraga
@ 2015-02-02  1:07   ` Matt Price
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Price @ 2015-02-02  1:07 UTC (permalink / raw)
  To: Matt Price, Org Mode

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

On Sat, Jan 31, 2015 at 2:56 PM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
>
> On Saturday, 31 Jan 2015 at 14:31, Matt Price wrote:
>
> [...]
>
> > Does BIND only work during export? If so, is there a better way to add a
> > local variable to a buffer?
>
> My understanding is that BIND does indeed only work during export.  For
> local variable setting, why not use Emacs's own methods:
>
> [[info:emacs#File%20Variables][info:emacs#File Variables]]

Thanks Eric, that does indeed work. I will add it to my default header
template.
>
>
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org
release_8.3beta-750-gb6fce5.dirty

[-- Attachment #2: Type: text/html, Size: 887 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-02  1:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-31 19:31 using #+BIND: Matt Price
2015-01-31 19:56 ` Eric S Fraga
2015-02-02  1:07   ` Matt Price

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).