ラベル Emacs の投稿を表示しています。 すべての投稿を表示
ラベル Emacs の投稿を表示しています。 すべての投稿を表示

2011年10月28日金曜日

Using ediff as git mergetool

実際には各行の末尾に継続行 \ を付加する必要があった。
[mergetool.ediff]
    cmd = emacs --eval \"
(progn
  (defun ediff-write-merge-buffer ()
    (let ((file ediff-merge-store-file))
      (set-buffer ediff-buffer-C)
      (write-region (point-min) (point-max) file)
      (message \\\"Merge buffer saved in: %s\\\" file)
      (set-buffer-modified-p nil)
      (sit-for 1)))
  (setq ediff-quit-hook 'kill-emacs
        ediff-quit-merge-hook 'ediff-write-merge-buffer) 
  (ediff-merge-files-with-ancestor \\\"$LOCAL\\\" \\\"$REMOTE\\\"
                                   \\\"$BASE\\\" nil \\\"$MERGED\\\"))\"
参考:emacs - Using ediff as git mergetool - Stack Overflow

pycheker and pep8 on win

windows版のpython2.7では
pychekerは
c:/Python27/Scripts/pychecker.bat
を実行する。gnupackのshellモードではカレントディレクトリのファイルは ./hoge と指定することに注意。

c:/Python27/Scripts/pychecker.bat --stdlib ./hoge.py
pep8は
c:/Python27/Scripts/pep8.exe
を実行する。

c:/Python27/Scripts/pep8.exe -v ./hoge.py



2011年10月26日水曜日

forth-mode for gforth

gforth-mode
http://www.complang.tuwien.ac.at/forth/gforth/Docs-html/

gforth manual 12. Emacs and Gforth, 12.3 Installing gforth.el

2010年11月5日金曜日

# -*- coding:utf8 -*- - python

python で
# -*- coding:utf8 -*-
をチェックしてるんだそうな。Emacsだけじゃないのな......

2010年11月1日月曜日

xmlを整形 - Emacs

  1. sgml-modeにする(M-x sgml-mode)
  2. リージョンをマーク
  3. sgml-pretty-printを実行(M-x sgml-pretty-print)

2010年10月22日金曜日

ツールバーを消す - Emacs

Emacsのツールバーを消す方法
(tool-bar-mode -1)
を .emacs にでも。