Install ediprolog, enable dired-dwim-target.

This commit is contained in:
2025-02-25 20:26:51 +09:00
parent ad20935123
commit 96b3a0c66c
2 changed files with 24 additions and 3 deletions

View File

@@ -33,6 +33,8 @@
:defer t
:commands (rust-mode))
(add-hook 'rust-mode-hook #'eglot-ensure)
;; This package provides integration with Prolog (SWI).
(use-package sweeprolog
:straight (sweeprolog :type git
@@ -47,10 +49,24 @@
:commands (sweeprolog-mode
sweeprolog-top-level)
:init
(setq sweeprolog-swipl-path "swipl")
(add-to-list 'auto-mode-alist '("\\.plt?\\'" . sweeprolog-mode)))
(setq sweeprolog-swipl-path "swipl"))
(add-hook 'rust-mode-hook #'eglot-ensure)
;; This package provides integration with Prolog (scryer) Note that editing
;; prolog is supported through built-in prolog-mode, this only allows actually
;; consulting prolog from within emacs.
(use-package ediprolog
:ensure t
:defer t
:commands (prolog-mode)
:init
(setq ediprolog-program "systemd-run")
(setq ediprolog-program-switches '("--user" "--scope" "-p" "MemoryMax=2G" "-p" "MemoryHigh=1.9G" "scryer-prolog")))
(with-eval-after-load "prolog"
(bind-key "C-c C-e" #'ediprolog-dwim prolog-mode-map))
(add-to-list 'auto-mode-alist '("\\.plt?\\'" . prolog-mode))
;; Nix language
(use-package nix-mode