emacs
バイトコードにコンパイル emacs -batch -f batch-byte-compile files... 右端で折り返さない M-x set-variable truncate-lines f C-x h M-x replace-string[RET]C-q C-m[RET][RET] RSC編 C-x C-q チェックイン/チェックアウト C-x v v C-c C-c C-x v i RCS…
% cd .emacs.d % mkdir elisp % cd elisp % wget http://www.emacswiki.org/emacs/download/install-elisp.el .emacs.elに以下を追加 (add-to-list 'load-path "~/.emacs.d/elisp") (require 'install-elisp) (setq install-elisp-repository-directory "~/.…
C-x h M-x replace-string [RET] C-q C-m [RET] [RET]
;; M-I でリージョンを整形 ;; C-x h M-I とすれば全行にタブを使ったのと同じことになる (global-set-key "\M-I" 'indent-region)
(find-file (nth 0 command-line-args-left)) (indent-region (point-min) (point-max)) (princ (buffer-string))
;;; -*- Mode: Emacs-Lisp ; Coding: utf-8 -*- ;;; Time-stamp: <2008-11-01 08:20:05 mtanaka> (set-language-environment 'Japanese) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) (setq locale-coding-system 'utf-8) ;;; …