Пример настройки ~/.emacs (emacs rus)
Ключевые слова: emacs, rus, (найти похожие документы)
Date: Thu, 05 Dec 2002 18:44:08 +0500
From: Vladimir Bormotov <bor@vb.dn.ua>
Newsgroups: ftn.ru.linux
Subject: Пример настройки ~/.emacs
это вот, ~/.emacs котроый приводит свежепоставленый emacs-21.2 (freebsd
port) до состояния "результат меня устраивает":
==== cut ===
(global-set-key [f1] 'help-command)
(global-set-key [f2] 'save-buffer)
(global-set-key [f3] 'find-file)
(global-set-key [f6] 'other-window)
(global-set-key [f7] 'replace-string)
(global-set-key [(control f9)] 'font-lock-fontify-buffer)
(global-set-key [f9] 'Kill-Buffer)
(keyboard-translate ?\C-h ?\C-?)
(global-set-key [delete] 'delete-char)
(setq delete-key-deletes-forward t)
(set-keyboard-coding-system 'cyrillic-koi8)
(set-terminal-coding-system 'cyrillic-koi8)
(setq load-path (cons (expand-file-name "~/el") load-path))
(defun Kill-Buffer ()
(interactive)
(kill-buffer (current-buffer))
)
(require 'python-mode)
(autoload 'python-mode "python-mode" "Python Mode." t)
(add-to-list 'auto-mode-alist '("\\.py$" . python-mode))
(if (fboundp 'global-font-lock-mode)
(global-font-lock-mode 1); Emacs
(setq font-lock-auto-fontify t)); XEmacs
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(column-number-mode t)
'(kill-whole-line t)
'(next-line-add-newlines t)
'(normal-erase-is-backspace t)
'(require-final-newline t))
1, mico (?), 00:17, 03/05/2006 [ответить]
| +/– |
довольно прикольно придумано такие global set keys :) | |
|