Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

void alchemist-mode-map #63

Closed
andreas-roehler opened this issue Apr 7, 2015 · 2 comments
Closed

void alchemist-mode-map #63

andreas-roehler opened this issue Apr 7, 2015 · 2 comments

Comments

@andreas-roehler
Copy link

Debugger entered--Lisp error: (void-variable alchemist-mode-map)

IIUC the reason is defining the menu before alchemist-mode-map is initialised.

Maybe a (defvar alchemist-mode-map nil) before solves it.

Resp. start with the map, here an example from python.el

(defvar python-mode-map
(let ((map (make-sparse-keymap)))
;; Movement
(define-key map [remap backward-sentence] 'python-nav-backward-block)
(define-key map [remap forward-sentence] 'python-nav-forward-block)
(define-key map [remap backward-up-list] 'python-nav-backward-up-list)
(define-key map "\C-c\C-j" 'imenu)
;; Indent specific
(define-key map "\177" 'python-indent-dedent-line-backspace)
(define-key map (kbd "") 'python-indent-dedent-line)
(define-key map "\C-c<" 'python-indent-shift-left)
(define-key map "\C-c>" 'python-indent-shift-right)
...

@jtmoulia
Copy link
Contributor

Cool -- was this fixed by #65?

@rranelli
Copy link
Contributor

Yes! I could sware I added the "closes" somewhere.

This issue can be closed.

On Wednesday, April 15, 2015, Thomas Moulia notifications@github.com
wrote:

Cool -- was this fixed by #65
#65?


Reply to this email directly or view it on GitHub
#63 (comment).

@tonini tonini closed this as completed May 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants