Quote:
Originally Posted by gsan70
You can set a default mode in emacs. Add the following line in your .emacs file,
(setq default-major-mode 'pwsafe-mode)
|
Thanks for the suggestion, but it was the same problem. Apparently there is no CLI or configuration equivalent to typing M-x pwsafe.
I've extracted the relevant code that executes:
Code:
;;;###autoload
(defun pwsafe (force)
"Major mode to interact with the command line password safe pwsafe.
Queries the passwords from the password safe and displays them in the buffer *pwsafe-list*.
The following keys are defined:
\\{pwsafe-list-mode-map}"
(interactive "P")
(if (and (not force)
(not (string= (buffer-name) "*pwsafe-list*"))
(get-buffer "*pwsafe-list*"))
(pop-to-buffer "*pwsafe-list*")
...
So there really is an argument, which apparently is not needed when running interactively. So the question is, how can I pass "nil" or "t" or something to a function that is run on the CLI?
[EDIT] Got my solution:
Code:
emacs --eval='(pwsafe nil)'