summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom/jao-custom-programming.el9
-rw-r--r--init.el10
-rw-r--r--lib/eos/jao-afio.el10
3 files changed, 23 insertions, 6 deletions
diff --git a/custom/jao-custom-programming.el b/custom/jao-custom-programming.el
index c9e33da..8a324f8 100644
--- a/custom/jao-custom-programming.el
+++ b/custom/jao-custom-programming.el
@@ -118,7 +118,9 @@
("p" "previous error" flymake-goto-prev-error)
("c" "consult flymake" consult-flymake)])
- :bind (:map flymake-mode-map (("M-m" . jao-transient-flymake))))
+ :bind (:map flymake-mode-map (("M-m" . jao-transient-flymake)
+ ("M-n" . flymake-goto-next-error)
+ ("M-p" . flymake-goto-prev-error))))
;;;; outline minor mode
(use-package outline
@@ -305,7 +307,6 @@
(setq rust-mode-treesitter-derive nil)
:config
(use-package smartparens-rust :demand t)
- (jao-define-attached-buffer "\\*cargo-.+\\*" 22)
:bind (:map rust-mode-map
("<f3>" . hs-toggle-hiding)
("C-c a" . eglot-code-actions)
@@ -328,6 +329,10 @@
(use-package rust-playground
:ensure t)
+(add-to-list 'display-buffer-alist
+ '("\\*\\(cargo-.+\\|rustic-compilation\\)\\*"
+ (display-buffer-reuse-window jao-display-below-eldoc)
+ (height . 0.5)))
;;;; Clojure
(use-package clojure-mode
diff --git a/init.el b/init.el
index ad0c535..432f494 100644
--- a/init.el
+++ b/init.el
@@ -51,7 +51,7 @@
warning-suppress-types '((comp)))
;;; Paths
-(defvar jao-local-lisp-dir (jao-d-l "~/.local/lib/elisp" "~/lib/elisp")
+(defvar jao-local-lisp-dir (jao-d-l "~/.emacs.d/lib" "~/lib/elisp")
"Directory for external elisp libraries and repos")
(defvar jao-data-dir (expand-file-name "data" jao-emacs-dir)
@@ -635,7 +635,7 @@
;;; Calendar, diary
;;;; diary
-(setq diary-file (expand-file-name "diary" jao-org-dir)
+(setq ;; diary-file (expand-file-name "diary" jao-org-dir)
diary-display-function 'diary-fancy-display
diary-mail-addr "jao@localhost"
diary-comment-start ";;"
@@ -923,6 +923,12 @@
(delete-other-windows-vertically)
(display-buffer-below-selected buffer alist))
+(defun jao-display-below-eldoc (buffer alist)
+ (let ((w (selected-window)))
+ (pop-to-buffer "*eldoc*" nil t)
+ (jao-display-buffer-below-selected buffer alist)
+ (select-window w t)))
+
(defun jao-attached-buffer-entry (name-rx height)
`(,name-rx (display-buffer-reuse-window
jao-display-buffer-below-selected)
diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el
index 74e1d78..72461dd 100644
--- a/lib/eos/jao-afio.el
+++ b/lib/eos/jao-afio.el
@@ -1,6 +1,6 @@
;;; jao-afio.el --- workspaces in just one frame -*- lexical-binding: t; -*-
-;; Copyright (C) 2020, 2021, 2022, 2024, 2025 jao
+;; Copyright (C) 2020, 2021, 2022, 2024, 2025, 2026 jao
;; Author: jao <mail@jao.io>
;; Keywords: frames
@@ -83,6 +83,8 @@
(unless (jao-afio--current-config)
(jao-afio--init (window-frame (get-buffer-window (current-buffer))))))
+(defvar jao-afio-side-buffers '("*eldoc*"))
+
;;; utilities
(defun jao-afio-trisect (&optional force)
(interactive)
@@ -96,7 +98,11 @@
(switch-to-buffer (other-buffer b))
(split-window-horizontally)
(switch-to-buffer b)
- (balance-windows)))
+ (balance-windows)
+ (when-let* ((b (seq-keep #'get-buffer jao-afio-side-buffers)))
+ (other-window -1)
+ (switch-to-buffer (car b))
+ (other-window 1))))
((> fw 162)
(delete-other-windows)
(split-window-horizontally)