默认 spacemacs 会有些不顺手,故把我的折腾记放在这里,留待后续参考
Emacs 欢迎界面的一句话非常好:
[The best editor is neither Emacs nor Vim, it's Emacs + Vim]
A: init.el 中添加
;; 设置缩进为2个空格
(defun my-setup-indent (n)
(setq c-basic-offset n)
(setq coffee-tab-width n)
(setq javascript-indent-level n)
(setq js-indent-level n)
(setq web-mode-markup-indent-offset n)
(setq web-mode-css-indent-offset n)
(setq web-mode-code-indent-offset n)
(setq css-indent-offset n)
(setq typescript-indent-level n))
(my-setup-indent 2)
(global-set-key (kbd "<f9>") 'holy-mode)
;; 编辑模式下禁用鼠标操作
(xterm-mouse-mode -1)
B: .spacemacs 中操作
;; 将主题切换为
dracula
找到dotspacemacs '(spacemacs-dark spacemacs-light)
并注释
添加dotspacemacs '(dracula)
- 下面的找到对应行并修改掉
;; 显示行号
dotspacemacs-line-numbers t
;; 默认启动模式为 emacs
dotspacemacs-editing-style 'emacs
C: 改变 melpa 源
默认的 melpa 源网络太慢,甚至很久都没有反应,找了一个清华的源,加在 init.el 中即可(加上去后效果还是很明显的),附上清华大学的开源软件镜像站: https://mirrors.tuna.tsinghua.edu.cn/help/elpa/
(setq package-archives '(("gnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")))
(package-initialize)
OK!暂时够用的了,后续如果增加新功能会继续更新...
网友评论