Is there a way to show Emacs command line arguments in status or title bar? Basically I start emacs like “emacs someproject/file.txt”, and I want it to show “someproject/file.txt” somewhere in the window.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
command-line-argsvariable may be sufficient, but non-file arguments which are processed by Emacs are also deleted from that variable, so it won’t include those.Try this: