3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Lispboxでinit.elを手っ取り早く読み込ませる方法

Posted at

Lispboxを導入したはいいもののEmacsの設定ができなかったのでいろいろ試してみた
とりあえずC-hをバックスペースに割り当てることと、カラースキームを割り当てることができたのでメモ
もっと良いやり方があればぜひ教えてください

参考:http://stackoverflow.com/questions/5839829/how-to-load-emacs-configuration-file-in-lispbox

OS: Windows10


結論から言うと以下のフォルダにinit.elなどをぶち込んでlispbox.batを書き換える

[Lispboxを解凍したディレクトリ]\lispbox-0.7\emacs-23.2\site-lisp

フォルダにはinit.elとカラースキームの定義ファイルgnupack-dark-theme.elを配置


lispbox.batの編集

19行目に

set TO_EVAL="(progn (load \"lispbox\") (slime))"`

以下のように追記する

set TO_EVAL="(progn (load \"lispbox\") (load \"init\") (load\"gnupack-dark-theme\") (slime))"

該当箇所は以下のようになる

set EMACS=%LISPBOX_HOME%/emacs-23.2/bin/runemacs.exe
set TO_EVAL="(progn (load \"lispbox\") (load \"init\") (load\"gnupack-dark-theme\") (slime))"

%EMACS% --no-init-file --no-site-file --eval=%TO_EVAL%

init.elには以下のように記述

;; C-hをバックスペースに変更
(keyboard-translate ?\C-h ?\C-?)
;; 別のキーバインドにヘルプを割り当てる
(define-key global-map (kbd "C-x ?") 'help-command)
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?