I’m new to Emacs and I’m just learning how to use it. I know how to set my “Emacs C Source dir” but I don’t know how to make this change permanent. I guess I have to set it in my .emacs file but I don’t know what is the command for it. Can someone help?
Share
Ordinarily most user-settable variables can be edited with Customize, but for some reason the
source-directoryvariable isn’t one of them.You will need to edit your
~/.emacsfile to include a line such as:Do not include the trailing
srcdirectory; it will be added automatically. Then exit and restart Emacs.Note that setting this after Emacs is running may have no effect because it’s only read when
find-func.elis loaded. You can setfind-function-C-source-directoryinstead (with the/src), but that can get overwritten. It’s better just to(setq source-directory ...)at startup, as above.