Skip to main content
27 events
when toggle format what by license comment
May 18, 2017 at 3:11 history closed Drew
wasamasa
Dan
Needs details or clarity
May 15, 2017 at 12:05 answer added Stefan timeline score: 1
May 15, 2017 at 5:04 answer added overexchange timeline score: 1
May 15, 2017 at 4:51 review Close votes
May 18, 2017 at 3:11
May 15, 2017 at 4:41 comment added Drew If emacs -q --load "~/.emacs.d/init.el" answers your question that please consider posting it as an answer. You can accept your own answer.
May 15, 2017 at 4:36 comment added overexchange @Drew Query updated
May 15, 2017 at 4:36 history edited overexchange CC BY-SA 3.0
added 148 characters in body
May 15, 2017 at 4:32 comment added Drew Please clarify the question, in light of the comments (if that helps). As it stands now, the question is unclear and risks being closed. Try to be specific.
May 15, 2017 at 3:08 comment added phils Well that isn't the same thing as Emacs using that file as the init file; but if it meets your needs then yes, that's a simple solution. I assume you saw this approach at emacs.stackexchange.com/a/4258 , but if not then make sure you've read that.
May 15, 2017 at 3:05 comment added overexchange @phils Looks like the answer is: emacs -q --load "~/.emacs.d/init.el". So, -q will avoid loading ~/.emacs(if available), --load option will load specified config file
May 15, 2017 at 2:53 comment added phils In that case you'll need to write a wrapper script for starting Emacs which temporarily renames the higher-priority init files to names which Emacs will ignore, so that it will find the init file you want it to use, and then renames the files back again. Emacs has no command-line option for this, because you're not expected to have more than one of those filenames.
May 15, 2017 at 2:51 comment added overexchange @phils I need to be be able to switch between .emacs and .emacs.d/init.el and .emacs.el anytime, without deleting/replacing these files. How can we solve this, using emacs option?
May 15, 2017 at 2:50 comment added phils You can generally work around that, but there are other answers to that question as well. I don't actually know what you're trying to do, though. Do you need one emacs configuration, or multiple emacs configurations? Or do you only need to load a particular elisp file in some cases, but not others? Or something else?
May 15, 2017 at 2:48 comment added overexchange @phils you mean changing HOME environment variable to /home/xyz/.emacs.d instead of /home/xyz? But, It is an environment variable used by OS processes and shell script.
May 15, 2017 at 2:45 history edited phils CC BY-SA 3.0
Deleted remnants of second question
May 15, 2017 at 2:43 comment added phils If you're trying to maintain multiple emacs configurations then emacs.stackexchange.com/q/4253 might be helpful.
May 15, 2017 at 2:39 comment added phils You shouldn't have both an ~/.emacs file and a ~/.emacs.d/init.el file. They are alternative names for a single purpose, and they are both "your own work" in that they are expected to be your personal init file. Pick whichever filename works best for you, and remove the other file. You can most certainly put custom code into multiple different .el files, but those particular filenames are reserved for use as the init filename.
May 15, 2017 at 2:37 history edited overexchange CC BY-SA 3.0
deleted 320 characters in body
May 15, 2017 at 2:37 comment added overexchange @phils I read that content. But deleting file looks weird. I have my own work in .emacs. I paste the same reference
May 15, 2017 at 2:35 comment added phils Refer to gnu.org/software/emacs/manual/html_node/emacs/Init-File.html . If ~/.emacs exists, that takes precedence over ~/.emacs.d/init.el. Simply delete or rename ~/.emacs to something that Emacs doesn't look for, and then it'll find your init.el file.
May 15, 2017 at 2:28 history edited overexchange CC BY-SA 3.0
deleted 10 characters in body
May 15, 2017 at 2:13 history edited overexchange CC BY-SA 3.0
added 47 characters in body
May 15, 2017 at 1:53 history edited overexchange CC BY-SA 3.0
added 3 characters in body
May 15, 2017 at 1:46 history edited overexchange CC BY-SA 3.0
deleted 9 characters in body
May 15, 2017 at 1:40 history edited overexchange CC BY-SA 3.0
added 303 characters in body; edited tags; edited title
May 15, 2017 at 1:37 review First posts
May 15, 2017 at 3:04
May 15, 2017 at 1:32 history asked overexchange CC BY-SA 3.0