summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-03-02 13:56:05 -0500
committerJakob L. Kreuze2019-03-02 13:56:05 -0500
commit9ba8f50e48fd3467295a6e2ee3beefc760ebccea (patch)
tree71bd52b214c16b4292af081c3e3f3d2c245a8455
parentcf7b4b99f7138cdbfb7011b75653710f7ddfd7c0 (diff)
Use Counsel.
-rw-r--r--jakob.org32
1 files changed, 23 insertions, 9 deletions
diff --git a/jakob.org b/jakob.org
index a97d2c1..9c0b760 100644
--- a/jakob.org
+++ b/jakob.org
@@ -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

© 2015 - 2026 Jakob L. Kreuze