4 Edit: base code
source | link

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

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'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

3 Edit: base code
source | link

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'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)

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.

2 edited tags
| link
1
source | link