Note that there are some explanatory texts on larger screens.

plurals
  1. POEmacs keybinding not working in custom major mode
    primarykey
    data
    text
    <p>I'm in the early stages of creating a <a href="https://github.com/vermiculus/sx.el" rel="nofollow">major mode for Emacs</a> for browsing and interacting with the Stack Exchange Network.</p> <p>Involved in it are several major modes, all with one-key keybindings similar to <code>dired</code>. I looked at the source for <code>dired</code>, and extracted what I thought would work:</p> <pre><code>(defvar stack-network-mode-map (let ((map (make-keymap))) (define-key map "n" 'stack-network-next-site) (define-key map "p" 'stack-network-previous-site) (define-key map "," 'stack-network-move-site-up) (define-key map "." 'stack-network-move-site-down) (define-key map "j" 'stack-network-jump-to-bookmarks) (define-key map "\C-m" 'stack-network-do-enter-site) ; ret (define-key map "o" 'stack-network-do-enter-site) (define-key map "u" 'stack-network-do-profile-summary) (define-key map "\C-uu" 'stack-network-do-profile-summary-for-user) (define-key map "i" 'stack-network-do-inbox) (define-key map "b" 'stack-network-toggle-bookmark) (define-key map "?" 'stack-network-list-functions) ; [1] (define-key map "\C-i" 'stack-network-display-details) ; tab map) "Keymap for Stack Exchange: Network Browser major mode") </code></pre> <p>but unfortunately this seems to have absolutely no effect; the buffer is simply edited just as any other normal buffer would be. How can I achieve single-key keybindings if this isn't they way? (Which, by the way, I'm sure it is. There has to be something else going on here.)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload