百度网盘地址: day2.mp4_免费高速下载|百度网盘-分享无限制
Youtube: - YouTube
-
视频outline: https://github.com/zilongshanren/Spacemacs-rocks/blob/master/episode2/day2/Readme.org
-
Hacking Scripts: https://github.com/zilongshanren/Spacemacs-rocks/blob/master/episode2/day2/init.el
练习:
-
搞懂setq和setq-default的区别 elisp - The difference between setq and setq-default in Emacs Lisp - Stack Overflow
-
搞懂auto-mode-alist和cons cells,使用js2-mode打开.json文件。 Cons Cells (GNU Emacs Lisp Reference Manual)
-
学习emacs lisp里面的cl(common lisp)扩展,弄懂loop for … in 的用法。 Common Lisp Extensions
-
使用customize-group去配置js2-mode
-
setq和defvar的区别是什么?
-
下面这三行代码有什么区别和联系?什么是quote?
(setq package-selected-packages zilongshanren/packages)
(setq package-selected-packages 'zilongshanren/packages)
(setq package-selected-packages (quote zilongshanren/packages))
友情提示:关于练习的答案,尽量问Emacs和Google,实在搞不定再来问我。
视频中提到的链接:
- http://melpa.org/
- GitHub - abicky/nodejs-repl.el: Run Node.js REPL and communicate with the process
- GitHub - mooz/js2-mode: Improved JavaScript editing mode for GNU Emacs
- GitHub - nflath/hungry-delete: Enables hungry deletion in all modes.
- http://company-mode.github.io/
- GitHub - abo-abo/swiper: Ivy - a generic completion frontend for Emacs, Swiper - isearch with an overview, and more. Oh, man!
- GitHub - Fuco1/smartparens: Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
我学到的新东西:
electric-indent-mode是emacs 24.4的新特性: A peek at Emacs 24.4: auto-indentation by default | Emacs Redux
那个
electric-indent-mode 对单个分号的缩进是因为它自带
fancy-comment的特性,缩进得很远就是为了和源码区分开来。如果连用多个分号就可以避免
fancy-comment 了
感谢@robturtle
最后
强烈推荐大家把视频中提到的Package的Readme都好好看一下,这次视频内容有点多,遇到啥问题欢迎在下面留言。
Happy Hacking