From eb057a2c3a84018c2cdcf51b6e97ac5a3b6718d6 Mon Sep 17 00:00:00 2001 From: Joe Frikker Date: Tue, 7 Jul 2026 23:10:02 -0400 Subject: [PATCH] perspective --- home.org | 53 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/home.org b/home.org index d5c0fb0..e9e9e2b 100644 --- a/home.org +++ b/home.org @@ -795,6 +795,7 @@ These are just some general settings that apply everywhere. First, a few package mixed-pitch ace-window popper + perspective ]; extraConfig = builtins.readFile ./emacs-global.el; }; @@ -941,11 +942,12 @@ Set up a few project- / workspace-related key bindings. #+BEGIN_SRC elisp (bind-keys ("s-f" . project-find-file) - ("s-F" . project-switch-project)) - - (with-eval-after-load 'tab-bar - (bind-keys :map tab-bar-mode-map - ("s-s" . tab-bar-switch-to-tab))) + ("s-F" . project-switch-project) + ("s-s" . persp-switch)) + + ;; (with-eval-after-load 'tab-bar + ;; (bind-keys :map tab-bar-mode-map + ;; ("s-s" . tab-bar-switch-to-tab))) #+END_SRC Don't run a server. I'm not using this, I can always turn it back on if I need to. @@ -1050,6 +1052,11 @@ content to be. (bind-keys ("C-z" . popper-toggle) ("C-;" . popper-cycle)) + (require 'perspective) + (setopt persp-mode-prefix-key (kbd "C-x t")) + (setopt persp-show-modestring nil) + (persp-mode) + (setq display-buffer-alist '(((or "\\*Flymake diagnostics .*" "\\*Embark Export: .*" @@ -1239,7 +1246,7 @@ Just "silently" wrap when searching at the bottom of a document. programs.emacs = { enable = true; extraPackages = epkgs: with epkgs; [ - bufferlo + # bufferlo ]; extraConfig = builtins.readFile ./emacs-workflow.el; }; @@ -1247,23 +1254,24 @@ Just "silently" wrap when searching at the bottom of a document. #+END_SRC #+BEGIN_SRC elisp - (bufferlo-mode) + ;; (bufferlo-mode) - (setopt bufferlo-include-buried-buffers nil) + ;; (setopt bufferlo-include-buried-buffers nil) - (with-eval-after-load 'bufferlo - (setq mode-line-misc-info - (assq-delete-all 'bufferlo-mode mode-line-misc-info))) + ;; (with-eval-after-load 'bufferlo + ;; (setq mode-line-misc-info + ;; (assq-delete-all 'bufferlo-mode mode-line-misc-info))) - (defun my/bury-or-kill-buffer () - (interactive) - (bury-buffer) - (bufferlo-kill-orphan-buffers)) + ;; (defun my/bury-or-kill-buffer () + ;; (interactive) + ;; (bury-buffer) + ;; (bufferlo-kill-orphan-buffers)) (bind-keys - ("s-b" . bufferlo-switch-to-buffer) - ("C-x t 0" . bufferlo-tab-close-kill-buffers) - ("C-x k" . my/bury-or-kill-buffer)) + ("s-b" . consult-buffer) + ;; ("C-x t 0" . bufferlo-tab-close-kill-buffers) + ;; ("C-x k" . my/bury-or-kill-buffer) + ) #+END_SRC ** Language Support @@ -1696,7 +1704,7 @@ for completion. That makes it really annoying to use; don't use yasnippet with e ("s-B" . consult-buffer) ("C-x 4 b" . consult-buffer-other-window) ("C-x 5 b" . consult-buffer-other-frame) - ("C-x t b" . consult-buffer-other-tab) + ;; ("C-x t b" . consult-buffer-other-tab) ("C-x r b" . consult-bookmark) ("C-x p b" . consult-project-buffer) @@ -1741,9 +1749,12 @@ for completion. That makes it really annoying to use; don't use yasnippet with e consult-ripgrep consult-git-grep consult-grep consult-man consult-bookmark consult-recent-file consult-xref consult-source-bookmark consult-source-file-register - consult-source-recent-file consult-source-project-recent-file + consult-source-recent-file + consult-source-buffer :hidden t :default nil ;; :preview-key "M-." - :preview-key '(:debounce 0.4 any))) + consult-source-project-recent-file + :preview-key '(:debounce 0.4 any)) + (add-to-list 'consult-buffer-sources persp-consult-source)) (setopt consult-narrow-key "<") ;; "C-+"