Comments (2)
https://github.com/manateelazycat/awesome-tab/blob/master/awesome-tab.el#L1303
应该是跟变个有关系
如果想恢复默认的
awesome-tab-mode启动后,再执行下一句就行了
(remove-hook 'kill-buffer-hook 'awesome-tab-buffer-track-killed)
from awesome-tab.
看到这个函数了:
(defun awesome-tab-buffer-track-killed ()
"Hook run just before actually killing a buffer.
In Awesome-Tab mode, try to switch to a buffer in the current tab bar,
after the current buffer has been killed. Try first the buffer in tab
after the current one, then the buffer in tab before. On success, put
the sibling buffer in front of the buffer list, so it will be selected
first."
(and (eq header-line-format awesome-tab-header-line-format)
(eq awesome-tab-current-tabset-function 'awesome-tab-buffer-tabs)
(eq (current-buffer) (window-buffer (selected-window)))
(let ((bl (awesome-tab-tab-values (awesome-tab-current-tabset)))
(b (current-buffer))
found sibling)
(while (and bl (not found))
(if (eq b (car bl))
(setq found t)
(setq sibling (car bl)))
(setq bl (cdr bl)))
(when (and (setq sibling (or (car bl) sibling))
(buffer-live-p sibling))
;; Move sibling buffer in front of the buffer list.
(save-current-buffer
(switch-to-buffer sibling))))))
看了下注释,就是这个意思。谢谢啦
from awesome-tab.
Related Issues (20)
- awesome-tab does not play well with [ai]spell :[ HOT 1
- Configuring colors? HOT 3
- Awesome tab not working anymore: "set-face-attribute: Invalid face: tab-line" HOT 1
- tab-line shows on Flycheck-posframe-buffer HOT 1
- Extremely slow Emacs startup due to AwesomeTab HOT 3
- Tab closing button HOT 1
- awesome-tab 造成 helm 显示异常。 HOT 2
- how to disable group. HOT 2
- awesome-tab has conflict with lsp-mode HOT 1
- awesome-tab 在 Emacs 29.0.50 打开 git 仓库下的文件报错 HOT 5
- Buffers/Files from the same project are being put in separate groups HOT 3
- 在 company-box 的 child frame 中无法隐藏 tab 显示? HOT 2
- 安装完awesome-tab后minibuffer显示异常 HOT 1
- awesome-tab不生效 HOT 2
- invalid-function awesome-tab-kill-buffer-match-rule HOT 4
- How about publishing to Melpa? HOT 2
- awesome-tab-ace-jump doesn't work with emacs-rime input method
- wrong icon color and font face HOT 5
- Change font HOT 2
- global-awesome-tab-mode and awesome-tab-mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-tab.