IK.AM

@making's tech note


Emacsセットアップメモ

🗃 {Dev/IDE/Emacs}
🏷 Emacs 
🗓 Updated at 2015-05-15T14:59:32Z  🗓 Created at 2015-05-15T14:59:32Z   🌎 English Page

MacのEmacsセットアップメモ

Emacsの最新化

$ brew install emacs
$ emacs --version
GNU Emacs 24.5.1
Copyright (C) 2015 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

El-Getのセットアップ

*scratch*に次のコードを貼り付けて、最後の)Ctrl-j

;; So the idea is that you copy/paste this code into your *scratch* buffer,
;; hit C-j, and you have a working el-get.
(url-retrieve
 "https://raw.githubusercontent.com/dimitri/el-get/master/el-get-install.el"
 (lambda (s)
   (goto-char (point-max))
   (eval-print-last-sexp)))
   

これでgit cloneが始まるので、しばらく待つ。

~/.emacs.d/init.elに次のコードを貼り付ける

(add-to-list 'load-path "~/.emacs.d/el-get/el-get")

(unless (require 'el-get nil 'noerror)
  (with-current-buffer
      (url-retrieve-synchronously
       "https://raw.githubusercontent.com/dimitri/el-get/master/el-get-install.el")
    (goto-char (point-max))
    (eval-print-last-sexp)))

(add-to-list 'el-get-recipe-path "~/.emacs.d/el-get-user/recipes")
(el-get 'sync)

パッケージのインストール

  • M-x el-get-install <RET> go-mode
  • M-x el-get-install <RET> protobuf-mode
  • M-x el-get-install <RET> markdown-mode
  • M-x el-get-install <RET> yaml-mode

✒️️ Edit  ⏰ History  🗑 Delete