I'm trying to define a key binding that executes a sequence of commands. I add this code to my ~/.emacs
file
(require 'origami)
(defun open-close-node ()
"Open/Close node origami mode"
(interactive)
('origami-open-node)
('origami-close-node))
(define-key origami-mode-map (kbd "C-c C-f") 'open-close-node)
Emacs start with no errors, but when i try to use the key binding, shows this open-close-node: Invalid function: (quote origami-open-node)
EDIT:
What i really trying is to adapt this to my case. By the way, I'm pretty new with lisp language.
I just want a fast key binding to open/close the nodes within origami-mode
'origami-open-node
) within the parentheses where elisp is expecting an unquoted symbol. I'd suggest you have a look at an elisp tutorial to get a better feel for how lisp syntax works.('origami-open-node)
syntax?