emacs

php-mode

インストール $ sudo apt-get install php-mode.emacsに以下を記述 ;;php-mode (load-library "php-mode") (require 'php-mode)参考:http://linux.eyo.jp/article.php?id=32

emacsコマンド:モードの切り替え

catalystでテンプレートファイル書くときに、テンプレートファイルもHTMLモードで書きたいけど、設定ファイルいじるのが面倒だったのでメモメモ。 M-x html-mode他のモード変更もOK!

emacsをRubyモードにする

rubyのフォルダの中のmiscフォルダ以下で unya@neko:~/download/ruby-1.8.6/misc$ cp *.el ~/elisp.emacsの設定 ;; Ruby (autoload 'ruby-mode "ruby-mode" "Mode for editing ruby source files" t) (setq auto-mode-alist (append '(("\\.rb$" . ruby-mode…

文字の置換

文字の置換。論文書くときに便利ー♪ # 指定したものをすべて変換 M-x replace-string RET [string] RET with [new string] # ユーザが指定したものを変換 M-x query-replace RET [string] RET with [new string]