Emacs: Switch keys for treemacs and toggle-flyspell (<f8> and <f9>).
This commit is contained in:
parent
6ae0d39e5e
commit
0935806207
|
@ -1,6 +1,6 @@
|
|||
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-04-10T14:16:00+0200>
|
||||
;; Time-stamp: <2020-04-15T14:24:20+0200>
|
||||
|
||||
;;; Commentary:
|
||||
;; * treemacs
|
||||
|
@ -17,9 +17,9 @@
|
|||
:after (display-line-numbers)
|
||||
:custom ((treemacs-project-follow-cleanup t) ; Collapse projects when leaving.
|
||||
(treemacs-silent-refresh t)) ; No log message on refresh.
|
||||
:bind (("<f8>" . treemacs-select-window) ; Focus treemacs.
|
||||
("C-<f8>" . treemacs) ; Toggle treemacs.
|
||||
("M-<f8>" . treemacs-add-and-display-current-project)
|
||||
:bind (("<f9>" . treemacs-select-window) ; Focus treemacs.
|
||||
("C-<f9>" . treemacs) ; Toggle treemacs.
|
||||
("M-<f9>" . treemacs-add-and-display-current-project)
|
||||
(:map treemacs-mode-map
|
||||
("<mouse-1>" . treemacs-single-click-expand-action)))
|
||||
:hook (treemacs-mode . my/disable-line-numbers))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-28T01:02:49+0100>
|
||||
;; Time-stamp: <2020-04-15T14:23:05+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -82,7 +82,7 @@
|
|||
"Set dictionary to german."
|
||||
(interactive)
|
||||
(ispell-change-dictionary "german")))
|
||||
:bind (("<f9>" . my/toggle-flyspell)
|
||||
:bind (("<f8>" . my/toggle-flyspell)
|
||||
(:map flyspell-mode-map
|
||||
("C-;" . nil))) ; iedit needs C-;.
|
||||
:hook ((prog-mode . flyspell-prog-mode) ; Spellcheck comments.
|
||||
|
|
Loading…
Reference in New Issue