我.spacemacs文件的按鍵組合包括部分看起來像這樣:Spacemacs不註冊
(defun dotspacemacs/user-config()
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here."
;; Keybindings
(global-unset-key [(control z)]) ;; unbind sleep button
(global-unset-key [(control x)(control z)]) ;; unbind sleep button
(global-unset-key [(control e)])
(global-unset-key [(control k)]) ;; unbind kill line
(global-set-key [(control z)] 'undo) ;; set Windows-style undo
(global-set-key [(control e)] 'View-scroll-half-page-backward) ;; remap page up
;; Setting and showing the 80-character column width
(set-fill-column 80)
(auto-fill-mode t)
(toggle-fill-column-indicator)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(paradox-github-token t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
)
我跟着從這篇文章的語法:我的變化https://github.com/andrewfwang/dotfiles/blob/ee84ddd304d1dad7ece206062debd3e3c86e927f/.emacs.d/init.el
然而,每次我重新啓動spacemacs,無已經註冊。但是,如果我在同一個文件中啓用或禁用軟件包,則會註冊這些更改。如果這些鍵綁定調整不在user-config
下?
似乎把''(evil-toggle-key」C-'「)'放在'dotspacemacs/user ''custom-set-variables'中的'-config'已經太晚了,因爲邪惡已經加載了,但是把'(setq evil-toggle-key'C-'\')'放在'dotspacemacs/user- .spacemacs的init()'部分似乎工作。 – NeilenMarais