Doom-emacs: [Question] How to set keybindings?

Created on 5 Aug 2018  路  2Comments  路  Source: hlissner/doom-emacs

I'm trying to add simple keybind to launch eshell, here is how look my ~/.doom.d/bindings.el file:

;;; ~/.doom.d/bindings.el -*- lexical-binding: t; -*-

(map!
 "C-;" #'eshell)

But even after I reload emacs and do make, it says C-; is undefined.
What I did wrong?

discussion

Most helpful comment

Have you loaded this file from ~/.doom.d/config.el?

;; in ~/.doom.d/config.el
(load! "bindings")

Only init.el and config.el are loaded automatically. You'll have to load other files manually.

All 2 comments

Have you loaded this file from ~/.doom.d/config.el?

;; in ~/.doom.d/config.el
(load! "bindings")

Only init.el and config.el are loaded automatically. You'll have to load other files manually.

@hlissner Thank you, it works

Was this page helpful?
0 / 5 - 0 ratings