moritetuのIT関連技術メモ

便利プラグイン

YASnippet

スニペットを挿入する。

(use-package yasnippet
  :ensure t
  :diminish yas-minor-mode       
  :config
  (yas-global-mode 1)
  (setq yas-prompt-functions '(yas-ido-prompt))
  )

デフォルトのキーバインドは以下。

key             binding
---             -------

C-c		Prefix Command

C-c &		Prefix Command

C-c & C-n	yas-new-snippet
C-c & C-s	yas-insert-snippet
C-c & C-v	yas-visit-snippet-file

様々なスニペット集は、以下から落とせる。

https://github.com/AndreaCrotti/yasnippet-snippets

(use-package yasnippet-snippets :ensure t)

スニペットを作成する場合は、M-x yas-new-snippet を入力すればスニペット作成のバッファが表示される。

magit

emacsでgitリポジトリ操作を可能にする。

(use-package magit
  :ensure t
  :config
  (global-set-key (kbd "C-x g") 'magit-status))

C-x gでリポジトリの状態表示、その後コマンドが分からなければ ? キーで確認できる。

URL

参考リンク

Emacsに関して有益な情報が得られるサイト。


トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
目次
ダブルクリックで閉じるTOP | 閉じる
GO TO TOP