summaryrefslogtreecommitdiff
path: root/config.org
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-07-11 09:49:27 +0200
committercashmere <cashmere@autistici.org>2026-07-11 09:49:27 +0200
commit210a3c29f70c4e939846f63b497f5979540ee460 (patch)
treec69eab0d1f23a8b7bbc2520d32c8feb7b738cd83 /config.org
parentb530de13a86db09cebcae7c3a30e0447a2fb8eb7 (diff)
downloademacs-210a3c29f70c4e939846f63b497f5979540ee460.tar.gz
2026-07-11T09:49:29+02:00
Diffstat (limited to 'config.org')
-rw-r--r--config.org29
1 files changed, 13 insertions, 16 deletions
diff --git a/config.org b/config.org
index c2e41da..3f1b8ec 100644
--- a/config.org
+++ b/config.org
@@ -5047,10 +5047,22 @@ opening another file in same project does not re-notify."
(ghostel-shell "xonsh")
(ghostel-ssh-install-terminfo t)
:config
+ ;; Ghostel's platform detector only knows darwin/linux; teach it FreeBSD
+ ;; so it can download the x86_64-freebsd release asset when the user
+ ;; first invokes a ghostel command.
+ (defun my/ghostel-module-platform-tag (orig)
+ (or (funcall orig)
+ (and (eq system-type 'berkeley-unix)
+ (let* ((raw-arch (car (split-string system-configuration "-")))
+ (arch (pcase raw-arch
+ ("amd64" "x86_64")
+ ("arm64" "aarch64")
+ (_ raw-arch))))
+ (format "%s-freebsd" arch)))))
+ (advice-add 'ghostel--module-platform-tag :around #'my/ghostel-module-platform-tag)
(require 'ghostel-compile)
(setq-default window-adjust-process-window-size-function
#'window-adjust-process-window-size-largest)
- (add-to-list 'ghostel-tramp-shells '("rpc" login-shell))
(evil-define-key 'normal ghostel-mode-map
(kbd "g t") #'ghostel-next
(kbd "g T") #'ghostel-previous
@@ -5136,21 +5148,6 @@ opening another file in same project does not re-notify."
(global-sops-mode 1))
#+end_src
-* emacs-tramp
-
-#+begin_src emacs-lisp
-(use-package tramp-rpc
- :ensure (:host github :repo "ArthurHeymans/emacs-tramp-rpc")
- :config
- (setq tramp-rpc-deploy-git-build-policy 'release
- tramp-rpc-controlmaster-persist 3600
- tramp-rpc-direnv-cache-timeout 3600
- tramp-rpc--cache-ttl 1800
- tramp-rpc--cache-max-size 100000
- remote-file-name-inhibit-locks t
- tramp-verbose 1))
-#+end_src
-
* magit-delta
#+begin_src emacs-lisp