From 56b1d490b87d77bf558ea381a46bca88ace95a8b Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Mon, 9 Jan 2023 19:40:10 +0200 Subject: [PATCH] Enable compilation-shell-minor-mode in Prolog top-level buffers --- .emacs.d/esy.org | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index fc8396a..63ab382 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -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 -- 2.39.2