使用ibuffer之后,进行分组,并用 /-S
保存之后,这个分组会被持久化保存,可是这部分的代码或者数据在哪里?比如bookmark有一个bookmarks文件。想把这个分组和整个配置一起备份。
(custom-set-variables) custom-file 这个变量指向哪 就在哪 如果是nil 则在 ~/.emacs 或 ~/.emacs.d/init.el里
另外分组 可以这样手动配
(setq ibuffer-saved-filter-groups
'(("Default"
("Hidden(g则不显示此分组)" (name . "^ "))
("Helm" (or (name . "^\\*helm\\|^\\*ac-mode-")))
("Woman" (name . "^\\*WoMan.*\\*$"))
("Compile" (name . "^*.*compil[ea].*$"))
("Gtalk" (or (name . "^\\*.*jabber") (name . "*fsm-debug*")))
("ERC" (mode . erc-mode))
("Custom" (mode . Custom-mode))
("Shell" (mode . shell-mode))
("Mail" (or (mode . mew-summary-mode) (mode . mew-draft-mode)(mode . mew-message-mode)))
("VC" (or (name . "*magit-") (name . "^\\*vc")(mode . diff-mode) (mode . vc-dir-mode)))
("Magit " (name . "*magit:"))
("Emacs" (name . "^\\*.*$"))
("Dired" (mode . dired-mode))
("Go" (mode . go-mode))
("Python" (mode . python-mode))
("EL" (mode . emacs-lisp-mode))
)))
3 个赞