emacs
emacs
tutoriel
installation
一个已经经过配置emacs版本。
basic information
global menu: F10. It works even in terminal !
window and frame: emacs window is in fact a pane, emacs frame is more like a window.
buffer
- you can use global tab line mode by click
<M-x>plusglobal-tab-line-modeto enable tabs
important buffer:
- scratch paper
- messages buffer
Mode Line
Echo Area and Minibuffer
command line
Command
<M-x>
- dired: show current directory
- calendar: show a calendar in the bottom
- eshell: a built-in shell in emacs
- teteris: 俄罗斯方块
Major and minor mode
major mode:
- org mode
- python mode
minor mode:
only one major mode can be activated in one the same time, but there can be many diffrent minor modes being activated in the same time.
- hl-line-mode
- global-hl-line-mode
basic key bindings
- C
- M
- S
- s
prefixes:
C-x: primary keys
- C-x C-f: find file
- C-x C-s: save file
- C-x C-w: write file(save current file to another file)
- C-x b: switch-to-buffer
- C-x C-b: list all buffers
- C-x left/rigt: this and next
C-c: key bindings created by major or minor mode or created by the user
C-SPC: set mark command, select a region(reset to
C-@in doom)C-w: delete and copy the region selected
C-y: paste(yank)
turn on traditional copy-paste way: cua-mode
C-/: undo
Canceling Operation
- C-g: quit, cancel all kinds of operations
learning more key bindings
descripe-bindings <SPC>hbb
markdown bindings
- inline code:
<C-c><C-s>c,<SPC>mic
help system
<M-x>customizeinit.el
install packages
configuration
可以自己创建一个my_init.org文件,然后在里面添加配置,这样可以使用org-mode语法。
文件跳转
书签
自定义doom配置
helps
文学编程
org-mode
: execute current line : result output
插件
Rime
Elfeed
刘家财 这个链接还讲了邮件的配置,并且给出了配置代码。这个仓库里面给出了很多有用的配置代码,值得收藏。
imenu-list
sort-tab
自定义键位
使用gnome-tweaks可以在linux下更改键位。
他人配置
很多有用的配置其实前人都已经探索过了,我们可以学习他们配置好的文件,从而得到自己的配置灵感。
系统配置
(cond ((eq system-type 'darwin)
<<Mac settings>>
)
((eq system-type 'windows-nt)
<<Windows settings>>
)
((eq system-type 'gnu/linux)
<<Linux settings>>
))