2008年12月5日星期五

emacs 专注模式

虽然emacs可以在一个窗口里工作的很好,可是否在某些情况下希望能够在一个不受干扰的独立窗口中打开某些文件,
这时可用到 专注frame.   例如某些帮助. 会让你很舒服 切换只需要用 c-x 5 o 就可以了

emacs 可以设置哪些文件可以定义为用专注窗口打开

(setq special-display-buffer-names '("*Help*" "*Apropos*"
                                     "*compilation*" "*grep*" "*igrep*")) 

  • sams-find-file-dedicated-frame, which asks for a filename, loads this file into a buffer, and shows this buffer in a dedicated frame.

  • sams-switch-buffer-dedicated-frame, which asks for a buffer name and loads this buffer into a dedicated frame.



没有评论: