Changes between Version 32 and Version 33 of Emacs


Ignore:
Timestamp:
2011/02/03 01:10:31 (13 years ago)
Author:
munepi
Comment:

VineSeed:22246 における新 vine-default に対応した emacs の設定および vskel への案を追加しました。

Legend:

Unmodified
Added
Removed
Modified
  • Emacs

    v32 v33  
    44= VineSeed = 
    55 
    6  * emacs: 23.2 
    7    * 23.x or 24.1? 
     6 * emacs: 23.2.93 (emacs 23.3 pretest) 
     7   * 23.3 or 24.1? 
    88 * emacs24: 24.0.50 
    99 
     
    1111 
    1212 * 5.x でやり残した TODO の洗い出し 
     13 * Vine Linux 向けの Emacs Policy みたいなものを考える 
     14 * [wiki:MonthlyIrcMeeting/Emacs1st 第1回 Emacs会議] を開き、意見を求める 
    1315 * [wiki:OfflineMeeting/201003 Vine Linuxユーザの集い 2010.03] の「Emacsの"vine-default"について」を整理する 
    1416 * Debian の emacs flavor について、資料を集める 
    15  * Vine Linux 向けの Emacs Policy みたいなものを考える 
    16  * [wiki:MonthlyIrcMeeting/Emacs1st 第1回 Emacs会議] を開き、意見を求める 
    1717 
    1818 * update-alternatives の priority 値のつけ方 
     
    5151しばらくの間は暫定的に残しておきます。 
    5252 
     53 
    5354==== site-start.el ==== 
    5455 
    55 {{{ 
    56 $ cat site-start.el.emacs24 
     56from site-start.el.emacs24 of emacs24-24.0.50-3.20110128vl6.x86_64 
     57{{{ 
    5758;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
    5859;;; GNU Emacs EMACS_VERSION default settings for Vine Linux 
     
    8889(defun vine-default-setup () 
    8990  "A function for setup to default configurations of Vine Linux" 
    90   (if vine-default 
    91       (progn 
    92         (message "Starting vine-default-setup ...") 
    93         (if vine-default-base (require 'vine-default-base)) 
    94         (if vine-default-faces (require 'vine-default-faces)) 
    95         (run-hooks 'vine-default-setup-hook) 
    96         (run-hooks 'after-vine-default-setup-hook);; obsolete 
    97         ) 
     91  (when vine-default 
     92    (message "Starting vine-default-setup ...") 
     93    (when vine-default-base  
     94      (message "Loading vine-default-base ...") 
     95      (require 'vine-default-base)) 
     96    (when vine-default-faces  
     97      (message "Loading vine-default-faces ...") 
     98      (require 'vine-default-faces)) 
     99    (run-hooks 'vine-default-setup-hook) 
     100    (run-hooks 'after-vine-default-setup-hook);; obsolete 
    98101    ) 
    99102  ) 
     
    130133 
    131134 
     135==== ''package''-init.el ==== 
     136 
     137from howm-init.el of howm-1.3.9.1-2vl6.noarch 
     138 
     139{{{ 
     140;; 
     141;; howm-init.el 
     142;; 
     143;;      for Vine Linux with emacsen-common 
     144;;      Munehiro Yamamoto <munepi@vinelinux.org> 
     145 
     146(defcustom vine-default-howm t 
     147  "A boolean for vine-default-howm" 
     148  :type 'boolean) 
     149 
     150(add-hook 'vine-default-setup-hook 
     151          (lambda() 
     152            (when vine-default-howm 
     153              (message "Loading vine-default-howm ...") 
     154              (require 'vine-default-howm)))) 
     155 
     156;;; end of file 
     157}}} 
     158 
     159 
     160==== emacs24-local.el ==== 
     161 
     162from emacs24-local.el of emacs24-24.0.50-3.20110128vl6.x86_64 
     163 
     164{{{ 
     165;;  
     166;; GNU Emacs EMACS_VERSION local configuration file 
     167;;  
     168;; This configuration is read at the end of site-start.el.  
     169;; Emacs configuration files are read 
     170;;   - distribution wide from site-start.el  
     171;;   - system wide from this configuration file 
     172;;   - per user from ~/.emacs.d/init.el,  
     173;; where per user settings override system wide settings,  
     174;; and system wide settings override site-start.el.  
     175 
     176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     177 
     178 
     179 
     180 
     181 
     182;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     183 
     184;; Local Variables: 
     185;; mode: emacs-lisp 
     186;; End: 
     187}}} 
     188 
     189==== ~/.emacs.d/emacsXX-vine-default.el ==== 
     190 
     191Emacs XX を起動して、vine-default-setup が実行される前に、~/.emacs.d/emacsXX-vine-default.el から vine-default に関する設定を読み込みます。 
     192 
     193{{{ 
     194;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     195;;  -*- coding: utf-8-unix -*- 
     196;;  FSF Emacs 24 用 vine-default 設定ファイル 
     197;;    Munehiro Yamamoto <munepi@vinelinux.org> 
     198;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     199 
     200;; Vine Linux のデフォルト設定を無効にしたい場合は、 
     201;; 以下を有効にしてください。 
     202;; (setq vine-default nil) 
     203 
     204;;; 環境変数 EMACS_IME と異なる IME を使いたい場合は、 
     205;;; 以下を有効にして設定することができます。 
     206;; (setq emacs-ime "atokx3");; mozc ibus-el scim tamago scim-bridge wnn7egg atokx3 skk anthy-el scim-bridge 
     207 
     208;;; マクロサーチパスの追加 
     209;;; 例えば、~/lib/emacs 以下にユーザ用の *.el, *.elc を置くことができます。 
     210;; (add-to-list 'load-path "~/lib/emacs") 
     211;; (add-to-list 'load-path "~/.emacs.d/auto-install") 
     212 
     213 
     214;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     215 
     216;; Local Variables: 
     217;; mode: emacs-lisp 
     218;; End: 
     219}}} 
     220 
     221 
     222==== vine-default-''package''.el ==== 
     223 
     224from vine-default-howm.el of howm-1.3.9.1-2vl6.noarch 
     225 
     226{{{ 
     227;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     228;;  -*- coding: utf-8-unix -*- 
     229;;  FSF Emacs 23 用 Vine Linux howm 設定 
     230;;    Munehiro Yamamoto <munepi@vinelinux.org> 
     231;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     232 
     233;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     234;; howm 
     235;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     236 
     237(autoload 'howm-menu "howm-mode" "Hitori Otegaru Wiki Modoki" t) 
     238 
     239(setq howm-process-coding-system 'utf-8) 
     240(setq howm-menu-lang 'ja) 
     241;; (global-set-key "\C-c,," 'howm-menu) 
     242 
     243;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     244 
     245(provide 'vine-default-howm) 
     246 
     247;; Local Variables: 
     248;; mode: emacs-lisp 
     249;; End: 
     250}}} 
     251 
     252 
    132253=== デフォルトのユーザ初期設定ファイル === 
    133254 
     
    138259一番最初に見つけたファイルを「デフォルトのユーザ初期設定ファイル」とする挙動をします。 
    139260 
     261==== ~/.emacs.d/init.el ==== 
     262 
    140263${HOME}/.emacs.d/init.el は、 
    141264例えばこのような感じで良いと考えています。 
     
    143266;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
    144267;;  -*- coding: utf-8-unix -*- 
    145 ;;  FSF Emacs 22/23/24 分岐用ファイル 
    146 ;;     
    147 ;;     
     268;;  FSF Emacs バージョン分岐用ファイル 
     269;;    Munehiro Yamamoto <munepi@vinelinux.org> 
    148270;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
    149271 
     
    161283    (load-file (expand-file-name custom-file))) 
    162284 
     285 
    163286;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
    164287 
     
    171294このようにしておくと、複数のバージョンのユーザ初期設定ファイルと 
    172295カスタムファイル(M-x customize により書き込まれる設定ファイル)を別々に管理できます。 
     296 
     297必要であれば、Emacs バージョン共通の設定ファイルなどを設けて、以下のようにしてもよいでしょう。 
     298{{{ 
     299;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     300;;  -*- coding: utf-8-unix -*- 
     301;;  FSF Emacs バージョン分岐用ファイル 
     302;;    Munehiro Yamamoto <munepi@vinelinux.org> 
     303;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     304 
     305;;; ユーザーの初期設定ファイルの指定 
     306(setq user-init-file  
     307      (concat "~/.emacs.d/emacs" (number-to-string emacs-major-version)  
     308              "-init.el")) 
     309(setq custom-file  
     310      (concat "~/.emacs.d/emacs" (number-to-string emacs-major-version)  
     311              "-custom.el")) 
     312 
     313(if (file-exists-p (expand-file-name user-init-file)) 
     314    (load (expand-file-name user-init-file))) 
     315(if (file-exists-p (expand-file-name custom-file)) 
     316    (load (expand-file-name custom-file))) 
     317 
     318 
     319;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     320 
     321;; 個人的な設定ファイル: Emacs バージョン共通 
     322(setq my-emacs-common-file "~/.emacs.d/emacs-common.el") 
     323(if (file-exists-p (expand-file-name my-emacs-common-file)) 
     324    (load-file (expand-file-name my-emacs-common-file))) 
     325 
     326 
     327;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     328 
     329;; Local Variables: 
     330;; mode: emacs-lisp 
     331;; End: 
     332}}} 
     333 
     334==== ~/.emacs.d/emacsXX-init.el ==== 
     335 
     336Emacs XX を起動すると、上記の ~/.emacs.d/init.el から ~/.emacs.d/emacsXX-init.el が 
     337 
     338{{{ 
     339;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     340;;  -*- coding: utf-8-unix -*- 
     341;;  FSF Emacs 24 用 ユーザ設定ファイル 
     342;;    Munehiro Yamamoto <munepi@vinelinux.org> 
     343;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     344 
     345 
     346 
     347 
     348 
     349;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     350 
     351;; Local Variables: 
     352;; mode: emacs-lisp 
     353;; End: 
     354}}} 
     355 
     356 
     357==== vupgrade??? ==== 
     358 
     359Vine Linux 5 までの設定ファイル ~/.emacs.* は、すべて ~/.emacs.d/dot.emacs/ 以下に移すようにするのはどうでしょうか? 
     360 
    173361 
    174362