LoginSignup
1
2

More than 5 years have passed since last update.

init-loader + helmの設定

Last updated at Posted at 2014-07-10

概要

init-loaderでhelmをインストールして,inits以下で分割管理する方法.

設定

  1. helm.elの作成
    
    $ touch ~/.emacs.d/inits/xx_helm.el
    xxの数字はお好みで.
    
  2. xx_helm.elの中身
    
    (dolist (dir (split-string (shell-command-to-string "find ~/.emacs.d/elpa/helm* -type d") "\n"))
     (add-to-list 'load-path dir))
    (require 'helm-config)
    (helm-mode 1)
    
  3. 設定
    随時追記予定

ハマった点

  1. (helm-mode 1)の記述場所
    分割管理するために,inits/xx_helm.elに書いたが反映されなかった.
    [解決策] xx_helm.elの中でelpa以下のhelmをロードするようにし,(require 'helm-cofig)を宣言することで解決.
  2. helmのアップデートへの追従
    load-pathする時に,ディレクトリをハードコーディングするとアップデートで名前が変わるたびに書き換える必要が出てくる.
    [解決策] ここ を参考に,動的に検出するようにして対応.

疑問

defaultでelpa以下をすべてロードしているのに,なんでinits以下で再度ロードし直さないとhelmの設定ができないのだろう。。。 謎だ.

1
2
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
1
2