文章最後更新於 2021 年 9 月 11 日 by 陳璿丞
目錄
emac 教學
2016/11更新:
後來因為接觸到spacemacs後,現在主力都使用spacemacs。從vim轉過來之後,非常好用。
不過會有一些小變動,記綠在此。
2018/04更新: org-agenda
在英文環境下使用中文輸入
如果全環境為英文的話,想要在emacs中輸入中文會有一些問題,因此把配製的方式,寫下來:
locale -a
cd /usr/share/locales
sudo su
./install-language-pack zh_TW
vim /etc/environment
LC_CTYPE="zh_TW.UFT-8"
這樣就可以在emacs的環境下輸入中文了。
spacemacs的字體
spacemacs內建的字體是adobe 的source code pro,我覺得這個字體還不錯看。所以也把安裝方式記下來。
[ -d /usr/share/fonts/opentype ] || sudo mkdir /usr/share/fonts/opentype
sudo git clone https://github.com/adobe-fonts/source-code-pro.git /usr/share/fonts/opentype/scp
sudo fc-cache -f -v
fc-list | grep "Source Code Pro"
這樣就完成啦!
- how to learn emacs
英文,簡單教學
org mode
-
emac org 筆記介紹
中文簡易使用心得 - org mode-organize your life
org的教學文檔 -
org mode beginning at the basic
英文版的簡易教學 - emacs for writer
emacs的org mode如何寫書org-agenda
覺得todo, agenda 很重要,但是一直沒有花時間去學。今天試著要用org-agenda 的時候,發生了讀不到agenda裡的TODO,所以看了一下。
在orgmode.org裡,看到這一段: Add current file to the list of agenda files. The file is added to the front of the list. If it was already in the list, it is moved to the front. With a prefix argument, file is added/moved to the end.
C-c [ (org-agenda-file-to-front)
C-c ] (org-remove-file)
Remove current file from the list of agenda files.
也就是說要先用 C-c [
把這個org檔加入之後,才可以使用agenda。
另外在spacemacs下,使用agenda前,要先指定一下你的org的資料夾在哪裡:
;; org config
(with-eval-after-load 'org
;; Directory org
(setq org-directory "your-folder-location" )
;; your default org file in org-agenda
;; (setq org-agenda-files (list "~/org/work.org"
;; "~/org/study.org"
;; "~/org/home.org"))
;; org-capture
;; (setq org-default-notes-file custom-org-mode-capture-file)
)
multi-term
from vim to emacs
evil mode
video
- Emacs Org-mode – a system for note-taking and project planning
others
- 如何提升你的能力?給年輕程序員的幾條建議
因為看到這篇文章,所以開始學習使用emacs