all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* questions about the value of local variables
@ 2013-05-12  5:10 Hongxu Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Hongxu Chen @ 2013-05-12  5:10 UTC (permalink / raw)
  To: help-gnu-emacs


Hi,

  I am using Emacs for some C/C++ coding.

  One of the problem I am facing is that I need to specify some value of
  Emacs variables in the .dir-locals.el file so that I can make the
  programming environment much easier, one of which is
  `ffap-c-path'. Since I also need the default value , I hope I can
  append it rather that `setq'(like the default behavior of
  `.dir-locals.el'). But I just cannot figure how. May be I need to use
  `eval'?

  Another problem is that the file local variables I set cannot take
  effect before I type `M-x normal-mode', and for dir local variables it
  seems that I need to kill all the buffers who is inside the
  directory. So it there any easier way to do this?

  Still another question, is there any good practice to set the
  variables with proper hooks in c family programming language modes?
  There seems quite a lot of hooks there
  (`c-initialization-hook',`cc-mode-hook', `c-mode-hook',
  `c-mode-common-hook', etc) and I just get lost.
  

-- 
Regards,
Hongxu Chen



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

end of thread, other threads:[~2013-05-13 16:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.25589.1368335429.855.help-gnu-emacs@gnu.org>
2013-05-12 17:14 ` questions about the value of local variables Alan Mackenzie
2013-05-13 16:36   ` Hongxu Chen
2013-05-12  5:10 Hongxu Chen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.