1

我正在尝试修改 alist ibuffer-saved-filter-groups。但是在我退出 ibuffer 并评估 setq 语句后,当我运行 Mx ibuffer 时,ibuffer 类别不会改变。只有当我完全重新启动 emacs 时,这些更改才会反映出来。

即修改这个列表,需要emacs完全重启才能生效:

(setq ibuffer-saved-filter-groups
  (quote (("default"
            ("Org" ;; all org-related buffers
         (mode . org-mode)
         (mode . ruby-mode))
            ("Mail"
              (or  ;; mail-related buffers
               (mode . message-mode)
               (mode . mail-mode)
               ;; etc.; all your mail related modes
               ))
            ("Emacs"
              (or
                (mode . emacs-lisp-mode)
                ))
        ("Scratch"
              (or
                (mode . lisp-interaction-mode)
                ))
            ("ERC"   (mode . erc-mode))
        ("Consoles" 
         (mode . term-mode))
        ("Help" (or (name . "\*Help\*")
             (name . "\*Apropos\*")
             (name . "\*info\*")
             (name . "\*Compile-Log\*")
             (name . "\*Backtrace\*")
             (name . "\*Messages\*")))))))
4

1 回答 1

3

您可以终止*Ibuffer*缓冲区或选择要使用的过滤器组:

M-x ibuffer
/ R "default"
于 2013-04-27T21:52:53.610 回答