Emacs插件锦集 TODO

<2019-08-12>

TODO Coder

Magit

magit-status 定义为快捷键 C-x g 相当于 git status 但显示的信息更多
在文件上按 Tab 相当于 git diff xxx
s 移动到暂存区, u 反移动, 相当于git add -u 和 git reset HEAD
c 相当于 git commit
C-c C-c 提交更改
p 推送变更, 例如光标放在master上就相当于git push

(use-package magit
  :bind ("C-x g" . magit-status))

Undo-tree

C-x u 可视化撤消树, 神器

(use-package undo-tree
  :init (global-undo-tree-mode)
  :config
  (setq undo-tree-auto-save-history t)
  (setq undo-tree-history-directory-alist
        `(("." . ,(concat user-emacs-directory "undo-history")))))

counsel swiper ivy 三件套

模糊搜索匹配

(use-package ivy
  :config
  (ivy-mode 1)
  (setq ivy-use-virtual-buffers t
        enable-recursive-minibuffers t)
  :bind ("C-s" . swiper))

diff-hl

(use-package diff-hl
  :config
  (global-diff-hl-mode)
  (diff-hl-margin-mode))

pyim

Emacs 内部的拼音输入法 ,还不错


TODO 美化

all-the-icons

(use-package all-the-icons)
(use-package all-the-icons-dired
  :config
  (add-hook 'dired-mode-hook 'all-the-icons-dired-mode))
(use-package all-the-icons-ivy
  :config
  (all-the-icons-ivy-setup))

需要安装字体

M-x all-the-icons-install-fonts

TODO 有趣的插件

emacs-nes

使用emacs模拟nes游戏机 https://github.com/gongo/emacs-nes(–)

(use-package nes
  :load-path "path" ;;https://github.com/gongo/emacs-nes
  )
;;M-x nes RET [FILE]

Nyan Cat for Emacs! Nyanyanyanyanyanyanyanyanyan!

parrot

魔性的鹦鹉https://github.com/dp12/parrot

(use-package parrot
  :config
  (parrot-mode))

epaint

telega.el

telegram客户端 https://github.com/zevlg/telega.el

(use-package telega
  :defer 1
  :config
  (defun lg-telega-root-mode ()
    (hl-line-mode 1))
  (defun lg-telega-chat-update (chat)
    (with-telega-root-buffer
      (hl-line-highlight)))
  (add-hook 'telega-chat-update-hook 'lg-telega-chat-update)
  (add-hook 'telega-root-mode-hook 'lg-telega-root-mode)
  (setq telega-proxies
        (list
         '(:server "127.0.0.1" :port 8888 :enable t ;;代理
                   :type (:@type "proxyTypeSocks5"
                                 :username "123" :password "123"))
         ))
  (add-hook 'telega-chat-pre-message-hook 'telega-msg-ignore-blocked-sender)
  (telega-mode-line-mode 1))
telega.png

TODO 未完待续

Copyright © 克里斯蒂娜 | 2019 Emacs 26.x Org-mode 9.x