]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Update Emacs config
authorEshel Yaron <me@eshelyaron.com>
Sat, 8 Apr 2023 17:58:18 +0000 (20:58 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 8 Apr 2023 17:58:18 +0000 (20:58 +0300)
.emacs.d/init.el

index b45b1f0c220ce3664ffc2fe2fafbf6e2f6f4576a..8f0e628326ebfe6fb0aff1762054dac71ae20ef5 100644 (file)
                                orderless
                                org
                                org-modern
+                               org-transclusion
                                package-lint
                                paredit
                                pdf-tools
                  ol-info
                  ol-irc
                  ol-mhe
-                 ol-rmail
                  ol-eww
                  ob-sql
                  org-tempo)
    vterm-use-vterm-prompt-detection-method t
    ;; use MPV with EMMS
    emms-player-list '(emms-player-mpv)
+   ;; free-style numbering plan
    bbdb-phone-style nil
+   ;; allow cycling through mail address completion candidate
+   bbdb-complete-mail-allow-cycling t
+   ;; don't pop up BBDB records after completing mail addresses
+   bbdb-completion-display-record nil
    eww-auto-rename-buffer 'title
    browse-url-browser-function #'eww-browse-url
    browse-url-generic-program "open"
    ;; set up some feeds for Elfeed
    elfeed-feeds '(
+                  ("https://www.logicmatters.net/feed/" logic blog)
+                  ("https://thejollyteapot.com/feed.rss" tech blog)
+                  ("https://emacs.cafe/feed.xml" emacs)
+                  ("https://impaktor.gitlab.io/index.xml" emacs)
+                  ("https://avdi.codes/feed/" blog tech)
                   ("https://snarfed.org/feed" tech)
                   ("https://www.nirandfar.com/rss" tech blog)
                   ("https://www.joelotter.com/posts/index.xml" indieweb)
    display-line-numbers-type 'relative
    ;; persist Git commit message history
    savehist-additional-variables '(log-edit-comment-ring)
-   )
+   ;; IRC stuff
+   rcirc-default-nick "eshel"
+   rcirc-server-alist '(("irc.libera.chat"
+                         :channels ("#emacs")
+                         :port 6697
+                         :encryption tls))
+   rcirc-log-flag t)
   (setq-default indent-tabs-mode nil))
 
 (esy/init-step theme
   (with-eval-after-load 'comint
     (keymap-set comint-mode-map "C-c C-q" #'esy/log-buffer)))
 
+(esy/init-step auto-exec-permissions
+  "Ensure scripts ran with `executable-interpret' are executable."
+  (with-eval-after-load 'executable
+   (define-advice executable-interpret (:before (&rest _) ensure-executable)
+     (unless (file-exists-p buffer-file-name)
+       (basic-save-buffer))
+     (executable-make-buffer-file-executable-if-script-p))))
+
 (esy/init-step startup-message
   "Override the default startup message."
- (define-advice startup-echo-area-message (:override () report-init-time)
-   (format "%s started in %s.  Hack away."
-           (propertize "Emacs"           'face 'success)
-           (propertize (emacs-init-time) 'face 'error  ))))
 (define-advice startup-echo-area-message (:override () report-init-time)
+    (format "%s started in %s.  Hack away."
+            (propertize "Emacs"           'face 'success)
+            (propertize (emacs-init-time) 'face 'error  ))))
 
 (esy/init-step packages
   "Ensure external packages are installed."
   (with-eval-after-load 'flyspell
     (keymap-unset flyspell-mode-map "C-," t)
     (keymap-unset flyspell-mode-map "C-." t)
-    (keymap-unset flyspell-mode-map "C-;" t)))
+    (keymap-unset flyspell-mode-map "C-;" t)
+    (keymap-unset flyspell-mode-map "C-M-i" t)))
 
 (esy/init-step minibuffer-completion
   "Configure minibuffer completions."