相關命令 #+caption:鍵繫結
key binding
command name
description
m-s h l
highlight-lines-matching-regexp
highlights all lines matching a regular expression
m-s h p
highlight-phrase
highlights everything matching a phrase
m-s h r
highlight-regexp
highlights everything matching a regular expression
m-s h u
unhighlight-regexp
deletes the highlighter under point
m-s h w
hi-lock-write-interactive-patterns
inserts a list of hi-lock patterns into the buffer
m-s h f
hi-lock-find-patterns
searches for hi-lock patterns in the buffer to use.
儲存高亮設定
使用命令m-s h w會把當前的高亮設定用注釋的方式寫在當前檔案的頭部.
當emacs進入hi-lock-mode後,會自動搜尋檔案頭部的10000個位元組(由變數`hi-lock-file-patterns-range`決定)找到高亮資訊並執行高亮操作
emacs進入hi-lock-mode後,若搜尋到有高亮設定資訊,會提示你是否應用該高亮資訊,若想自動應用該高亮資訊在.emacs中新增如下配置項
(global-hi-lock-mode 1)(setq hi-lock-file-patterns-policy #'(lambda (dummy) t))
Emacs字型設定
首先,在emacs中,通過選單options set default font,設定好喜歡的字型。然後,把游標放到你所在的字型上,用命令m x describe font來檢視你當前使用的字型名稱 字型大小大小。把其中的字型資訊拷貝出來,寫到.emacs檔案裡 set default font ou...
Emacs 主題設定
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!首先安裝emacs的輔助外掛程式 sudo apt get install emacs goodies el 然後進入emacs emacs 最新版本已經自帶各種主題,只要敲入命令 color theme select 就會看到一大堆主題,選擇乙個...
Emacs 小技巧 高亮 修改所有同名符號
此篇面向初級使用者,寫的比較囉嗦,請中高階使用者見諒。其實這篇的草稿是9月初寫的,躺在草稿箱裡面3個月了,最近工作和生活都比較忙,沒時間來整理格式 emacs自帶hi lock mode hi lock.el 裡面提供了一下幾個很有用的命令 使用時直接輸入上面命令或快捷鍵即可,不用先開啟 hi lo...