diff options
| author | Jakob L. Kreuze | 2019-03-02 13:56:05 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze | 2019-03-02 13:56:05 -0500 |
| commit | 9ba8f50e48fd3467295a6e2ee3beefc760ebccea (patch) | |
| tree | 71bd52b214c16b4292af081c3e3f3d2c245a8455 /jakob.org | |
| parent | cf7b4b99f7138cdbfb7011b75653710f7ddfd7c0 (diff) | |
Use Counsel.
Diffstat (limited to 'jakob.org')
| -rw-r--r-- | jakob.org | 32 |
1 files changed, 23 insertions, 9 deletions
@@ -856,11 +856,25 @@ Transformer to highlight channels in the =completing-read= of 'irc-switch-buffer-transformer)) #+END_SRC -Use Counsel to improve quality-of-life with Ivy. +Use Counsel as a frontend to a couple of interactive commands. #+BEGIN_SRC elisp (use-package counsel - :demand t) + :demand t + :bind + (("C-c k" . counsel-ag) + ("C-x b" . counsel-switch-buffer))) +#+END_SRC + +Use Swiper instead of isearch. + +#+BEGIN_SRC elisp +(use-package swiper + :bind + ("C-s" . swiper) + ("C-M-s" . swiper) + ("C-r" . swiper) + ("C-M-r" . swiper)) #+END_SRC * Yasnippet @@ -902,14 +916,13 @@ Yes, I use Emacs as my window manager. You should try it out some time! (exwm-enable) #+END_SRC -I find that four workspaces is enough to start out with, and I like being able -to use my X windows across workspaces. +I find that four workspaces is enough to start out with. I liked being able to +use my X windows across workspaces, but this doesn't play nicely with +=counsel-switch-buffer=. #+BEGIN_SRC elisp :init - (setq exwm-workspace-number 4 - exwm-workspace-show-all-buffers t - exwm-layout-show-all-buffers t) + (setq exwm-workspace-number 4) #+END_SRC "Global key bindings" in EXWM work essentially anywhere, including buffers that @@ -1005,14 +1018,15 @@ windows a pain. This snippet renames buffers when their class or title changes. (exwm-workspace-rename-buffer exwm-class-name))) (exwm-update-title . (lambda () (when (not exwm-instance-name) - (exwm-workspace-rename-buffer exwm-title))))) + (exwm-workspace-rename-buffer exwm-title)))) #+END_SRC Start the Emacs daemon so that =emacsclient= can be used from the command line to pop a new buffer for editing. #+BEGIN_SRC elisp -(server-start) + :config + (server-start)) #+END_SRC EXWM has issues popping any sort of pinentry window, so we'll just let Emacs do |