emacs: gnus: add some more splitting rules for se463-s19
[~bandali/configs] / .emacs.d / init.el
index 948c457..5059f1c 100644 (file)
@@ -445,6 +445,10 @@ For disabling the behaviour for certain buffers and/or modes."
 ;; allow scrolling in Isearch
 (setq isearch-allow-scroll t)
 
 ;; allow scrolling in Isearch
 (setq isearch-allow-scroll t)
 
+;; open read-only file buffers in view-mode
+;; (enables niceties like `q' for quit)
+(setq view-read-only t)
+
 (use-feature vc
   :bind ("C-x v C-=" . vc-ediff))
 
 (use-feature vc
   :bind ("C-x v C-=" . vc-ediff))
 
@@ -486,6 +490,15 @@ For disabling the behaviour for certain buffers and/or modes."
 (when (display-graphic-p)
   (unbind-key "C-z" global-map))
 
 (when (display-graphic-p)
   (unbind-key "C-z" global-map))
 
+(bind-keys
+ ;; for back and forward mouse keys
+ ("<mouse-8>"      . previous-buffer)
+ ("<drag-mouse-8>" . previous-buffer)
+ ("<mouse-9>"      . next-buffer)
+ ("<drag-mouse-9>" . next-buffer)
+ ("<drag-mouse-2>" . kill-this-buffer)
+ ("<drag-mouse-3>" . ivy-switch-buffer))
+
 (bind-keys
  :prefix-map a/straight-prefix-map
  :prefix "C-c p s"
 (bind-keys
  :prefix-map a/straight-prefix-map
  :prefix "C-c p s"
@@ -1532,12 +1545,11 @@ For disabling the behaviour for certain buffers and/or modes."
   :commands (alert)
   :init (setq alert-default-style 'notifications))
 
   :commands (alert)
   :init (setq alert-default-style 'notifications))
 
-(use-package ivy-xref
-  :init
-  (setq xref-show-xrefs-function #'ivy-xref-show-xrefs))
-
 ;; (use-package fill-column-indicator)
 
 ;; (use-package fill-column-indicator)
 
+(use-package emojify
+  :hook (erc-mode . emojify-mode))
+
 \f
 ;;; Email (with Gnus)
 
 \f
 ;;; Email (with Gnus)
 
@@ -1589,6 +1601,8 @@ For disabling the behaviour for certain buffers and/or modes."
                                  (list ".*guile-devel.gnu.org" "l.gnu.guile.devel")
                                  (list ".*guix-devel.gnu.org" "l.gnu.guix.devel")
                                  (list ".*info-guix.gnu.org" "l.gnu.guix.info")
                                  (list ".*guile-devel.gnu.org" "l.gnu.guile.devel")
                                  (list ".*guix-devel.gnu.org" "l.gnu.guix.devel")
                                  (list ".*info-guix.gnu.org" "l.gnu.guix.info")
+                                 (list ".*savannah-hackers-public.gnu.org" "l.gnu.savannah.hackers.public")
+                                 (list ".*savannah-users.gnu.org" "l.gnu.savannah.users")
                                  (list ".*www-commits.gnu.org" "l.gnu.www.commits")
                                  (list ".*www-discuss.gnu.org" "l.gnu.www.discuss")
                                  ;; webmasters
                                  (list ".*www-commits.gnu.org" "l.gnu.www.commits")
                                  (list ".*www-discuss.gnu.org" "l.gnu.www.discuss")
                                  ;; webmasters
@@ -1618,8 +1632,8 @@ For disabling the behaviour for certain buffers and/or modes."
              (nnimap-split-fancy (|
                                   (: gnus-registry-split-fancy-with-parent)
                                   ;; se463-s19
              (nnimap-split-fancy (|
                                   (: gnus-registry-split-fancy-with-parent)
                                   ;; se463-s19
-                                  ("subject" "SE\\s-?463" "course.se463-s19")
-                                  (from "\\(SE\\s-?463\\|Gema\\)" "course.se463-s19")
+                                  ("subject" "\\(SE\\s-?463\\|Deliverable\\)" "course.se463-s19")
+                                  (from "\\(SE\\s-?463\\|Gema\\|Hemant\\|Davood\\|Camilo\\|Reza\\|Michael\\|Sandy\\)" "course.se463-s19")
                                   ;; catch-all
                                   "INBOX")))
      (nnimap "csc"
                                   ;; catch-all
                                   "INBOX")))
      (nnimap "csc"
@@ -1682,6 +1696,12 @@ For disabling the behaviour for certain buffers and/or modes."
      ("l\\.gnu\\.guix\\.info"
       (to-address . "info-guix@gnu.org")
       (to-list    . "info-guix@gnu.org"))
      ("l\\.gnu\\.guix\\.info"
       (to-address . "info-guix@gnu.org")
       (to-list    . "info-guix@gnu.org"))
+     ("l\\.gnu\\.savannah\\.hackers\\.public"
+      (to-address . "savannah-hackers-public@gnu.org")
+      (to-list    . "savannah-hackers-public@gnu.org"))
+     ("l\\.gnu\\.savannah\\.users"
+      (to-address . "savannah-users@gnu.org")
+      (to-list    . "savannah-users@gnu.org"))
      ("l\\.gnu\\.www\\.commits"
       (to-address . "www-commits@gnu.org")
       (to-list    . "www-commits@gnu.org"))
      ("l\\.gnu\\.www\\.commits"
       (to-address . "www-commits@gnu.org")
       (to-list    . "www-commits@gnu.org"))