In my .emacs
file I have the following line in custom-set-variables
:
'(initial-buffer-choice "~/Programming/C++/<some project I'm working on>")
This works great. However, I use emacs to edit lots of other files too. Before I inserted the above line in custom-set-variables
, I could specify the file I intended to edit from the command line. For example, when I intended to edit a file called text_file.txt
, I could type this command:
emacs text_file.txt
And emacs would startup with text_file.txt
as the selected buffer. Now that I've specified initial-buffer-choice
, regardless of what I say after emacs
, emacs will always open the file specified in custom-set-variables
, and not the file specified at command line. For example, the command
emacs text_file.txt
now opens ~/Programming/C++/<some project I'm working on>
instead of text_file.txt
.
How can I over ride initial-buffer-choice
so when I do specify which file to open, that file will open?
custom-set-variables
andinitial-buffer-choice
, perhaps) seem fitting to me.initial-buffer-choice
would be far to specific. You'd probably be the only question with that tag for a very, very long time. Therefore, the tag isn't terribly useful.