[exwm] set up buffer switching and window management
This commit is contained in:
parent
b593eb323b
commit
5171cc2d9a
54
init.org
54
init.org
|
@ -70,11 +70,42 @@ At first I decided to remap all Emacs, Boon, and Hydra bindings, but it turned o
|
|||
"M-r" 'ivy-next-history-element)
|
||||
(general-auto-unbind-keys t)
|
||||
#+END_SRC
|
||||
** ido-mini
|
||||
This needs to be before =boon=/=exwm=, or you get a "failed to define function ido-mini" error when you press the keybinding.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package ido-mini
|
||||
:demand
|
||||
:load-path "~/.emacs.d/contrapunctus/ido-mini/"
|
||||
:bind (("C-x C-l" . ido-mini)
|
||||
:map boon-command-map
|
||||
("H" . ido-mini))
|
||||
:config
|
||||
(ivy-mode))
|
||||
#+END_SRC
|
||||
** exwm
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package exwm
|
||||
:config
|
||||
(start-process "kmonad" "kmonad" "kmonad" (expand-file-name "~/kmonad.kbd")))
|
||||
(setq exwm-input-global-keys
|
||||
'(([?\C-1] . select-window-1)
|
||||
([?\C-2] . select-window-2)
|
||||
([?\C-3] . select-window-3)
|
||||
([?\C-4] . select-window-4)
|
||||
([?\s-q] . delete-other-windows)
|
||||
([?\s-j] . split-window-below)
|
||||
([?\s-k] . split-window-right)
|
||||
([?\s-x] . ido-mini)
|
||||
([?\s-m] . delete-other-windows)
|
||||
([?\s-w] . split-window-below)
|
||||
([?\s-v] . split-window-right)
|
||||
([?\s-b] . ido-mini)))
|
||||
(add-hook 'exwm-update-class-hook
|
||||
(lambda ()
|
||||
(exwm-workspace-rename-buffer exwm-class-name)))
|
||||
(exwm-enable)
|
||||
(start-process "kmonad" "kmonad" "kmonad" (expand-file-name "~/kmonad.kbd"))
|
||||
;; This form for xset works when I evaluate it with `eval-last-sexp', but when Emacs starts up the repeat rate is still set to something slower 🤔
|
||||
(start-process "xset" "xset" "xset" "r" "rate" "200" "80")
|
||||
(start-process "gajim" "gajim" "gajim")
|
||||
|
||||
#+END_SRC
|
||||
** user interface
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
@ -82,6 +113,8 @@ At first I decided to remap all Emacs, Boon, and Hydra bindings, but it turned o
|
|||
:demand
|
||||
:load-path "~/.emacs.d/contrapunctus/")
|
||||
|
||||
(add-to-list 'load-path "~/.emacs.d/user/")
|
||||
|
||||
#+END_SRC
|
||||
** ediff
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
@ -159,21 +192,6 @@ At first I decided to remap all Emacs, Boon, and Hydra bindings, but it turned o
|
|||
:config
|
||||
(setq swiper-action-recenter t))
|
||||
#+END_SRC
|
||||
** ido-mini
|
||||
This needs to be before =boon=, or you get a "failed to define function ido-mini" error when you press the keybinding.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-to-list 'load-path "~/.emacs.d/user/")
|
||||
(add-to-list 'load-path "~/.emacs.d/contrapunctus/")
|
||||
;; (add-to-list 'load-path "~/.emacs.d/contrapunctus/fin/")
|
||||
|
||||
(use-package ido-mini
|
||||
:load-path "~/.emacs.d/contrapunctus/ido-mini/"
|
||||
:bind (("C-x C-l" . ido-mini)
|
||||
:map boon-command-map
|
||||
("H" . ido-mini))
|
||||
:config
|
||||
(ivy-mode))
|
||||
#+END_SRC
|
||||
|
||||
**
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
|
Loading…
Reference in New Issue