]> git.armaanb.net Git - config.org.git/blobdiff - config.org
Fixup hl-todo
[config.org.git] / config.org
index 8efd94bae8e5e63b1ef7c87e5f0ba45726d7ad7b..83e1ba1dae246b27aa3facfa6c1730903f75dbbf 100644 (file)
@@ -148,11 +148,11 @@ Highlight when changes are made.
     :config (evil-goggles-mode)
     (evil-goggles-use-diff-faces))
 #+end_src
-** Highlight "TODO" comments
+** Highlight TODOs in comments
 #+begin_src emacs-lisp
   (use-package hl-todo
     :straight (hl-todo :type git :host github :repo "tarsius/hl-todo")
-    :config (global-hl-todo-mode))
+    :config (global-hl-todo-mode 1))
 #+end_src
 ** Don't lose cursor
 #+begin_src emacs-lisp
@@ -277,12 +277,6 @@ Add back C-a/C-x
     (org-hide-emphasis-markers t)
     (org-fontify-whole-block-delimiter-line nil))
 #+end_src
-** Automatically tangle
-#+begin_src emacs-lisp
-  (add-hook 'org-mode-hook
-            (lambda () (add-hook 'after-save-hook #'org-babel-tangle
-                                 :append :local)))
-#+end_src
 ** Tempo
 #+begin_src emacs-lisp
   (use-package org-tempo
@@ -308,7 +302,7 @@ Simple, but not too simple autocompletion.
            :map ivy-minibuffer-map
            ("TAB" . ivy-alt-done)
            :map ivy-switch-buffer-map
-           ("C-d" . ivy-switch-buffer-kill))
+           ("M-d" . ivy-switch-buffer-kill))
     :config (ivy-mode))
 #+end_src
 ** Ivy-rich
@@ -372,7 +366,6 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m
     :load-path "/usr/share/emacs/site-lisp/mu4e"
     :bind (("C-c m" . mu4e))
     :config
-
     (setq user-full-name "Armaan Bhojwani"
           smtpmail-local-domain "armaanb.net"
           smtpmail-stream-type 'ssl
@@ -416,12 +409,10 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m
                        (smtpmail-smtp-server "smtp.mailbox.org")
                        (mu4e-drafts-folder . "/school/Drafts")
                        (mu4e-trash-folder . "/school/Trash")))))
-
     (add-to-list 'mu4e-bookmarks
-                 '(
-                   :name  "Unified inbox"
-                   :query "maildir:\"/personal/INBOX\" or maildir:\"/school/INBOX\""
-                   :key   ?b)))
+                 '(:name "Unified inbox"
+                         :query "maildir:\"/personal/INBOX\" or maildir:\"/school/INBOX\""
+                         :key ?b)))
 #+end_src
 ** Calendar
 #+begin_src emacs-lisp
@@ -446,26 +437,28 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m
 Another file has more specific network configuration.
 #+begin_src emacs-lisp
   (use-package circe
-    :config
-    (load "~/.emacs.d/irc.el"))
-  (use-package circe-color-nicks
-    :after circe
-    :straight (:type built-in))
+    :config (load-file "~/.emacs.d/irc.el"))
+
   (use-package circe-chanop
-    :after circe
-    :straight (:type built-in))
+    :straight (:type built-in)
+    :after circe)
+
+  (use-package circe-color-nicks
+    :straight (:type built-in)
+    :after circe)
 #+end_src
 ** Default browser
-Set EWW as default browser except for videos
+Set EWW as default browser except for videos.
 #+begin_src emacs-lisp
   (defun browse-url-mpv (url &optional new-window)
     "Open URL in MPV."
     (start-process "mpv" "*mpv*" "mpv" url))
 
-  (setq browse-url-browser-function
+  (setq browse-url-handlers
         (quote
          (("youtu\\.?be" . browse-url-mpv)
-          ("." . eww-browse-url))))
+          ("." . eww-browse-url)
+          )))
 #+end_src
 ** Emacs Anywhere
 Use Emacs globally. Use the Emacs daemon and bind a key in your wm to
@@ -582,7 +575,7 @@ Company-box adds icons.
 *** Magit
 #+begin_src emacs-lisp
   (use-package magit
-    :hook (git-commit-setup-hook . pinentry-start))
+    :hook (magit-mode-hook. pinentry-start))
 #+end_src
 *** Colored diff in line number area
 #+begin_src emacs-lisp
@@ -768,7 +761,9 @@ Gruvbox colors
   color_focus = rgb:83/a5/98
   color_focus_maximized = rgb:d6/5d/0e
   color_unfocus = rgb:58/58/58
-
+#+end_src
+*** Bar
+#+begin_src conf :tangle ~/.spectrwm.conf
   bar_enabled = 0
   bar_font = xos4 Fira Code:pixelsize=14:antialias=true # any installed font
 #+end_src