我的emacs配置部分

2022-05-08 06:03:12 字數 2155 閱讀 8300

(global-set-key (kbd "ret") 'newline-and-indent)//換行

(global-set-key (kbd "c-a") 'mark-whole-buffer)//ctrl-a全選

(set-background-color "grey15")//背景顏色

(set-foreground-color "grey")//字型顏色

(setq default-cursor-type 'bar)//設定游標為條狀

(setq c-basic-offset 2)//設定tab為兩個空格的寬度

(setq c-default-style "awk")//設定c++編譯顏色風格

(set-frame-parameter (selected-frame) 'alpha (list 85 50))//設定螢幕透明

使用這些配置之後,開啟任意乙個檔案,你的emacs會變成這個樣子

其實許多選項都可以在\(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.

'(blink-cursor-mode nil)

'(cua-mode t nil (cua-base))

'(inhibit-startup-screen t)

'(show-paren-mode t)

'(tool-bar-mode nil))

(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 "ubuntu mono" :foundry "dama" :slant normal :weight normal :height 143 :width normal)))))

省了一大段要背的東西很好不是麼

我的Emacs配置

乙個snippet外掛程式可以自定義模板,http code.google.com p yasnippet add to list load path d lvan emacs plugin yasnippet 0.6.1c require yasnippet yas initialize yas ...

我的emacs配置

linux系統中emacs還是有它的好處的,之前我也覺得emacs是個怪胎,但發現只要對emacs進行一定的配置,還是可以用的。最最重要的就是要徹底顛覆emacs原來的熱鍵設定,直接有乙個ergoemacs包可以實現這個,上面的圖就是安裝好ergoemacs以後的熱鍵圖。除了圖裡面的ctrl s,c...

我的第乙份 emacs 配置

emacs.d init.el 一開啟就起用 org 模式。setq default major mode org mode add to list auto mode alist org org mode 語法高亮 global font lock mode t 以 y n代表 yes no fs...