]> git.armaanb.net Git - config.org.git/blobdiff - config.org
Switch to scratch buffer before launching things
[config.org.git] / config.org
index 95770ce4c8792e281de86937125d2825aebc6eb5..deb1c21d670c6b14721293f107cc310a0d7ed13d 100644 (file)
@@ -265,6 +265,10 @@ Define templates for lots of common structure elements. Mostly just used within
 A well balanced completion framework.
 #+begin_src emacs-lisp
   (use-package ivy
+    :bind (:map ivy-minibuffer-map
+           ("TAB" . ivy-alt-done))
+           (:map ivy-switch-buffer-map
+           ("M-d" . ivy-switch-buffer-kill))
     :config (ivy-mode))
 #+end_src
 ** Ivy-rich
@@ -277,6 +281,7 @@ A well balanced completion framework.
 Ivy everywhere.
 #+begin_src emacs-lisp
   (use-package counsel
+    :bind ("C-M-j" . 'counsel-switch-buffer)
     :config (counsel-mode))
 #+end_src
 ** Remember frequent commands
@@ -469,7 +474,8 @@ Circe is a really nice IRC client that claims to be above RCIRC and below ERC in
     (interactive)
     (if (get-buffer "irc.armaanb.net:6696")
         (switch-to-buffer "irc.armaanb.net:6696")
-      (progn (circe "libera")
+      (progn (switch-to-buffer "*scratch*")
+             (circe "libera")
              (circe "oftc")
              (circe "tilde"))))
 
@@ -793,7 +799,7 @@ I'm not a huge fan of how spectrwm handles keybindings, probably my biggest grip
 #+end_src
 **** Programs
 #+begin_src conf :tangle ~/.spectrwm.conf
-  program[email] = emacsclient -ce "(mu4e)"
+  program[email] = emacsclient -ce '(progn (switch-to-buffer "*scratch*") (mu4e))'
   program[irc] = emacsclient -ce '(acheam-irc)'
   program[rss] = emacsclient -ce '(elfeed)'
   program[calendar] = emacsclient -ce '(acheam-calendar)'