From 83398cc80eac7c903503a12e4b264f9a696e3d12 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Thu, 23 Feb 2023 11:26:18 +0100 Subject: [PATCH] Experimenting --- init.el | 28 ++++++++++++++++++++++++++++ packages/packages.nix | 7 +++++++ 2 files changed, 35 insertions(+) diff --git a/init.el b/init.el index adef201..762ffab 100644 --- a/init.el +++ b/init.el @@ -269,6 +269,8 @@ "Open a new instance of vterm" (interactive) (vterm 'N)) + (:hook esh-autosuggest-mode) + (eshell-syntax-highlighting-global-mode +1) (:global "C-c o e" ccr/eshell-new "C-c o t" ccr/vterm-new)) @@ -429,5 +431,31 @@ dired-listing-switches "-l --almost-all --human-readable --group-directories-first --no-group") (:with-mode dirvish-directory-view-mode (:hook diredfl-mode))) +;; TODO play with skacle/sway.el + +;; (setq shackle-default-rule '(:frame t) +;; shackle-display-buffer-frame-function 'sway-shackle-display-buffer-frame) + +;; (sway-socket-tracker-mode) +;; (sway-undertaker-mode) ;; If you want to use :dedicate, read below. +;; (sway-x-focus-through-sway-mode) ;; Temporary workaround for Sway bug 6216 + +;; ;; To use with pgtk Emacs, you *must* ensure that frame names are +;; ;; unique. This is a way to achieve this: +;; (setq frame-title-format '("%b — GNU Emacs [" (:eval (frame-parameter (selected-frame) 'window-id)) "]")) +;; ;; You may want to make this nicer, feel free to improve. The only +;; ;; requirement is that each frame must have a strictly unique name on +;; ;; that Emacs instance (name collisions with other programs, including +;; ;; other Emacs processes, are not an issue ) + +;; (setq shackle-rules +;; `(("*Help*" :select t :frame t :dedicate t)) + +;; shackle-default-rule '(:frame t) +;; shackle-default-size 0.4 +;; shackle-inhibit-window-quit-on-same-windows t +;; shackle-display-buffer-frame-function 'sway-shackle-display-buffer-frame) + + (provide 'init) ;;; init.el ends here diff --git a/packages/packages.nix b/packages/packages.nix index 976bc38..cf2d996 100644 --- a/packages/packages.nix +++ b/packages/packages.nix @@ -43,4 +43,11 @@ with epkgs; [ diredfl pdf-tools ligature + + esh-autosuggest + eshell-syntax-highlighting + + # TODO playing with these + sway + shackle ]