]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Enable compilation-shell-minor-mode in Prolog top-level buffers
authorEshel Yaron <me@eshelyaron.com>
Mon, 9 Jan 2023 17:40:10 +0000 (19:40 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 9 Jan 2023 17:40:10 +0000 (19:40 +0200)
.emacs.d/esy.org

index fc8396a5d16f14abffc1196775a158929b91418d..63ab382e07d49a5693bf19b77f7b2301d34e7f8b 100644 (file)
@@ -1115,6 +1115,7 @@ over ssh for remote connections.
     (setq elfeed-feeds
           '("https://lwn.net/headlines/rss"
             "https://reddit.com/r/prolog/.rss"
+            "https://phaazon.net/blog/feed"
             "https://maggieappleton.com/rss.xml"
             "https://pouria.dev/rss.xml"
             "https://sachachua.com/blog/feed/"
@@ -1131,6 +1132,7 @@ over ssh for remote connections.
             "https://njoseph.me/shaarli/feed/atom?"
             "https://stephanango.com/feed.xml"
             "https://nullprogram.com/feed/"
+            "https://amodernist.com/all.atom"
             "https://planet.emacslife.com/atom.xml")))
 #+end_src
 
@@ -1708,19 +1710,13 @@ include =emacs-lisp-mode= and =lisp-interaction-mode=.
 #+begin_src emacs-lisp
   (require 'use-package)
 
-  (setq use-package-verbose t)
-
   (use-package sweeprolog
     :mode ("\\.plt?\\'" . sweeprolog-mode)
     :bind-keymap ("C-c p" . sweeprolog-prefix-map)
     :config
-    (add-hook 'sweeprolog-mode-hook #'sweeprolog-electric-layout-mode))
-
-  ;; (add-to-list 'auto-mode-alist '("\\.pl\\'"  . sweeprolog-mode))
-  ;; (add-to-list 'auto-mode-alist '("\\.plt\\'" . sweeprolog-mode))
-
-  ;; (with-eval-after-load 'sweeprolog
-  ;;   (add-hook 'sweeprolog-mode-hook #'sweeprolog-electric-layout-mode))
+    (add-hook 'sweeprolog-mode-hook #'sweeprolog-electric-layout-mode)
+    (add-hook 'sweeprolog-top-level-mode-hook
+              #'compilation-shell-minor-mode))
 #+end_src
 
 *** Make =rg= regard =.pl= files as Prolog rather than Perl