Small changes

This commit is contained in:
2025-11-08 04:19:55 +00:00
parent a0c8e3ab3e
commit 2795248a74
3 changed files with 19 additions and 13 deletions

View File

@@ -145,7 +145,8 @@ for those which have a name in ~clean-buffers-keep~.
(defconst clean-buffers-keep
(list "config.org" "*scratch*"
"*dashboard*" "*Messages*"
"*Warnings*" "*eshell*")
"*Warnings*" "*eshell*"
"*ChatGPT*")
"List of buffer names to preserve.")
(defun clean-buffers ()
@@ -3026,6 +3027,8 @@ write the code.
(nmmap
:keymaps 'org-mode-map
"]]" #'org-next-visible-heading
"[[" #'org-previous-visible-heading
"TAB" #'org-cycle)
(local-leader
@@ -3035,9 +3038,12 @@ write the code.
"t" #'org-todo
"r" #'org-list-repair
"," #'org-priority
"n" #'org-narrow-to-subtree
"w" #'widen
"i" #'org-insert-structure-template
"p" #'org-latex-preview
"e" #'org-export-dispatch
"e" #'org-babel-execute-src-block-maybe
"E" #'org-export-dispatch
"o" #'org-edit-special
"T" #'org-babel-tangle
"S" #'org-property-action
@@ -4279,7 +4285,7 @@ effectively.
tab-bar-auto-width-min '((20) 2)
tab-bar-tab-name-function #'+tab-bar/name-func)
(defvar +tab-bar/buffer-name-max-len 7)
(defvar +tab-bar/buffer-name-max-len 9)
(defvar +tab-bar/project-name-max-len 10)
(defun +tab-bar/--abbreviate-project-name ()
@@ -4296,11 +4302,13 @@ effectively.
(get-mru-window))))))
(ext (string-match "\\.[[:word:]]+$" buffer-name)))
(if (> (or ext (length buffer-name)) +tab-bar/buffer-name-max-len)
(thread-last
(if ext
(substring buffer-name ext)
"")
(concat (substring buffer-name 0 +tab-bar/buffer-name-max-len) "<...>"))
(thread-first
buffer-name
(substring 0 +tab-bar/buffer-name-max-len)
(concat "<...>"
(if ext
(substring buffer-name ext)
"")))
buffer-name)))
(defun +tab-bar/name-func ()

View File

@@ -110,9 +110,7 @@ Otherwise, if C-u is used, you can select an instance to spawn."
(cond
((null arg) (eshell))
((numberp arg)
(if (= arg 1)
(eshell nil)
(eshell (1- arg))))
(eshell arg))
(t (+eshell/--choose-instance))))
(defun +eshell/at-cwd (&optional arg)

View File

@@ -1,7 +1,7 @@
{
"NeoSolarized": { "branch": "master", "commit": "b94b1a9ad51e2de015266f10fdc6e142f97bd617" },
"lazy.nvim": { "branch": "main", "commit": "f0f5bbb9e5bfae5e6468f9359ffea3d151418176" },
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
"telescope.nvim": { "branch": "master", "commit": "0294ae3eafe662c438addb8692d9c98ef73a983e" },
"vim-tmux-navigator": { "branch": "master", "commit": "c45243dc1f32ac6bcf6068e5300f3b2b237e576a" }
}