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

@@ -108,4 +108,9 @@
(keymap-global-set "C-c l" 'compile) (keymap-global-set "C-c l" 'compile)
(keymap-global-set "C-c C-l" 'recompile) (keymap-global-set "C-c C-l" 'recompile)
;; When set to true, dired will try to guess the target directory. Use this by
;; first splitting the window in two, selecting the destination in a new buffer,
;; and use 'C' to copy the file/directory.
(setq dired-dwim-target t)
;;; 05-basic.el ends here ;;; 05-basic.el ends here

View File

@@ -33,6 +33,8 @@
:defer t :defer t
:commands (rust-mode)) :commands (rust-mode))
(add-hook 'rust-mode-hook #'eglot-ensure)
;; This package provides integration with Prolog (SWI). ;; This package provides integration with Prolog (SWI).
(use-package sweeprolog (use-package sweeprolog
:straight (sweeprolog :type git :straight (sweeprolog :type git
@@ -47,10 +49,24 @@
:commands (sweeprolog-mode :commands (sweeprolog-mode
sweeprolog-top-level) sweeprolog-top-level)
:init :init
(setq sweeprolog-swipl-path "swipl") (setq sweeprolog-swipl-path "swipl"))
(add-to-list 'auto-mode-alist '("\\.plt?\\'" . sweeprolog-mode)))
(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 ;; Nix language
(use-package nix-mode (use-package nix-mode