emacs cannot launch a function from the commandline
I want to launch emacs and have it immediately launch into pwsafe-mode.
My .emacs file properly loads the pwsafe.el file, so everything works when invoking M-x pwsafe. But when I run this on the CLI: emacs -f pwsafe the output message is indicates a missing argument: Code:
command-line-1: Wrong number of arguments: (lambda (force) "Major mode to interact with the command line password safe pwsafe. |
You can set a default mode in emacs. Add the following line in your .emacs file,
(setq default-major-mode 'pwsafe-mode) |
Quote:
I've extracted the relevant code that executes: Code:
;;;###autoload [EDIT] Got my solution: Code:
emacs --eval='(pwsafe nil)' |
All times are GMT -5. The time now is 02:24 AM. |