SpaceEmacs Rock Day3 学习笔记

SpaceEmacs Rock Day3 学习笔记

SpaceEmacs Rock Day3 学习笔记

1 Spaceemacs Emacs Day3

1.1 auto move the help window(popwin)

(require 'popwin)
(popwin-mode t)

1.2 Split your configuration into multiple files

  1. load-file, load-path and load
  2. feature, provide and require, autoload
  3. naming conventions
    • all of names should have a prefix, such that the naming conflicts could be minimal.
  4. define your abbrevs, alias of long string
(abbrev-mode)
(define-abbrev-table 'global-abbrev-table '(
                                            ;; signature
                                            ("8dk" "devinkin")
                                            ;; emacs regex
                                            ))
  1. how to origanie your configs
    • init-package.el
    • init-ui.el
    • init-better-default.el
    • init-keybindings.el
    • custom.el
(setq custom-file (expand-file-name "lisp/custom.el" user-emacs-directory))
  1. use `conunsel-git` to find file in git managed project.
(global-set-key (kbd "C-c p f") 'counsel-git)

1.3 Major mode and minjor in details

  1. Major mode
    • text-mode:edit text files
    • special-mode:edit special files
    • prog-mode:edit programming files
  2. mode key map and mode key

Date: 2018-10-23 16:50

Author: devinkin

Created: 2018-10-23 二 16:50

Validate

posted @ 2018-10-23 16:51  EmacsDevinkin  阅读(569)  评论(0编辑  收藏  举报