Emacs 008 邊欄行號顯示

2021-08-14 02:36:45 字數 1223 閱讀 5080

emacs-008-邊欄行號顯示

emacs中,邊欄行號顯示比行號模式要直觀多了。開啟可以通過命令輸入的方式開啟,用到的命:linum-mode。這個命令也有點像開關的行為,重複輸入會不斷進行設定狀態的翻轉。

通過linum-mode開啟的效果:

再次輸入,出現的效果:

如果希望emacs啟動的時候就開啟這個功能,需要在.emacs配置檔案中加入以下配置:

(global-linum-mode t)

目前我個人的emacs配置檔案積累到如下狀態:

(custom-set-variables

;; custom-set-variables was added by custom.

;; if you edit it by hand, you could mess it up, so be careful.

;; your init file should contain only one such instance.

;; if there is more than one, they won't work right.

)(custom-set-faces

;; custom-set-faces was added by custom.

;; if you edit it by hand, you could mess it up, so be careful.

;; your init file should contain only one such instance.

;; if there is more than one, they won't work right.

'(default ((t (:family "courier new" :foundry "outline" :slant normal :weight normal :height 98 :width normal)))))

;; disable files backup function

(setq make-backup-files nil)

(setq line-number-mode t)

(global-linum-mode t)

Emacs學習階段小結 Emacs常用快捷鍵總結

首先推薦一下emacs自帶的emacs tutorial,跟著這個做一邊,兩三個小時,基本的使用就能掌握了。之後的神教程就有很多了,比如 sams.teach.yourself.emacs.in.24.hours 這本書就蠻吊的。之後說一下,windows裡面的emacs和linux裡面的區別是有的...

00 公共方法

運算子 python表示式 結果描述 支援的資料型別 1,2 3,4 1,2,3,4 合併字串 列表 元組 hi 4 hi hi hi hi 複製字串 列表 元組 in3in 1,2,3 true 元素是否存在 字串 列表 元組 字典 not in 4 not in 1,2,3 true 元素是否不...

Emacs使用概覽

游標控制 c v alt v 上下移動一頁 c n p 上下移動行 c f b 前後移動一字元 alt f b 前後移動一單詞 c a e 移動到行首和尾 alt a e 移動到句首和尾 c u digit cmd 連續執行 c g 取消鍵入命令 文字編輯文字複製 c 選擇起點,點游標移動到終點,m...