emacs22在ubuntu10上的界面簡直慘不忍睹,只好升級成emacs23,不過傳統配置php-mode的方法在emacs23上不起作用了。下面是具體的配置方法:

          1. 下載php-mode 1.5,解壓到~/elisp 目錄

          2. 在用戶目錄(~/)下找到.emacs 文件,如果沒有,就新建一個。

          3. 把下列內容加到。emacs文件中:

            (autoload 'php-mode "~/elisp/php-mode" "Major mode for editing php code." t)

            (add-to-list 'auto-mode-alist '("\\.php$" . php-mode))

            (add-to-list 'auto-mode-alist '("\\.inc$" . php-mode)


          4. 重啟emacs。


          參考地址: http://stackoverflow.com/questions/898063/making-php-mode-compatible-with-emacs-23

          posted on 2010-10-18 16:36 Aaron.Chu 閱讀(1087) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2010年10月>
          262728293012
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          留言簿(5)

          隨筆檔案(57)

          相冊

          友情鏈接

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 乐昌市| 邛崃市| 汾阳市| 于田县| 武定县| 清流县| 肃宁县| 琼结县| 祁连县| 富阳市| 孟津县| 百色市| 措勤县| 江孜县| 从化市| 正阳县| 东辽县| 大洼县| 宝坻区| 孙吴县| 车险| 土默特左旗| 云林县| 贵州省| 平邑县| 垣曲县| 疏勒县| 资溪县| 奈曼旗| 黄陵县| 金山区| 惠东县| 安泽县| 焦作市| 县级市| 河北省| 沁源县| 虞城县| 大理市| 黎平县| 凯里市|