--- a/.emacs-my Tue Jan 18 00:03:25 2011 +0200
+++ b/.emacs-my Tue Jan 18 09:31:28 2011 +0200
@@ -10,7 +10,7 @@
;; For load order see README.
;;; ----------------------------------------------------------------
-;;; debugging.
+(message "debugging")
;; Shut off message buffer by setting nil.
(setq message-log-max 512)
@@ -23,7 +23,7 @@
(setq inhibit-default-init nil) ; t/nil
;;; ----------------------------------------------------------------
-;;; user info.
+(message "user info")
(setq user-full-name "Oleksandr Gavenko")
(setq user-mail-address "gavenkoa@gmail.com")
@@ -31,7 +31,7 @@
(setenv "ORGANIZATION" (concat user-full-name " <" user-mail-address ">"))
;;; ----------------------------------------------------------------
-;;; mode groups.
+(message "mode groups")
(defun my-modelist-to-hooklist (modes)
"Convert list of MODES to list of hooks for these modes."
@@ -82,9 +82,7 @@
"List of text mode hooks.")
;;; ----------------------------------------------------------------
-;;; appearance.
-
-(setq default-directory "~/")
+(message "appearance")
;; To maximize frame on full screen, not work with Windows Emacs 21.4.
;; And maked different height with Emacs 22.3 and 23.1.
@@ -168,13 +166,13 @@
(setq echo-keystrokes 0.2)
;;; ----------------------------------------------------------------
-;;; silent runing.
+(message "silent runing")
;; (setq inhibit-splash-screen t) ; nonexist on 21.4.1
(setq inhibit-startup-message t)
;;; ----------------------------------------------------------------
-;;; whitespaces.
+(message "whitespaces")
(setq default-indicate-empty-lines t)
(setq default-indicate-buffer-boundaries 'left)
@@ -187,7 +185,7 @@
(add-hook 'text-mode-hook (lambda () (setq require-final-newline nil)))
;;; ----------------------------------------------------------------
-;;; gnu serv, server.
+(message "gnu serv, server")
;; (load "~/emacs/bin/gnuserv/gnuserv.el")
;; (require 'gnuserv)
@@ -204,7 +202,7 @@
;; (desktop-read)
;;; ----------------------------------------------------------------
-;;; standart/general settings.
+(message "standart/general settings")
(if (boundp 'confirm-kill-emacs)
(setq confirm-kill-emacs 'yes-or-no-p))
@@ -263,7 +261,7 @@
)
;;; ----------------------------------------------------------------
-;;; switching, creating, selecting buffers.
+(message "switching, creating, selecting buffers")
(iswitchb-mode 1)
(setq iswitchb-buffer-ignore
@@ -283,7 +281,7 @@
(global-set-key "\C-x\C-b" 'ibuffer)
;;; ----------------------------------------------------------------
-;;; scrolling.
+(message "scrolling")
(defvar my-scroll-margin 4)
@@ -300,7 +298,7 @@
(append my-text-mode-hook-list my-devel-mode-hook-list my-scroll-margin-mode-hook-list) )
;;; ----------------------------------------------------------------
-;;; search, isearch, occur.
+(message "search, isearch, occur")
(setq case-fold-search t)
@@ -308,9 +306,7 @@
(setq search-highlight t) ; highlight incremental search
;;; ----------------------------------------------------------------
-;;; grep, find.
-
-;; (require 'grep)
+(message "grep, find")
;; This settings have effect from Emacs 22.x.
(when (eq system-type 'windows-nt)
@@ -333,23 +329,26 @@
(setq grep-highlight-matches nil)
(setq grep-use-null-device nil)
-(add-to-list 'grep-find-ignored-directories "build" t)
-(add-to-list 'grep-find-ignored-directories "dist" t)
-(add-to-list 'grep-find-ignored-directories "lib" t)
+(eval-after-load 'grep
+ (lambda nil
+ (add-to-list 'grep-find-ignored-directories "build" t)
+ (add-to-list 'grep-find-ignored-directories "dist" t)
+ (add-to-list 'grep-find-ignored-directories "lib" t)
-(add-to-list 'grep-find-ignored-files "*TAGS")
-(add-to-list 'grep-find-ignored-files "GPATH")
+ (add-to-list 'grep-find-ignored-files "*TAGS")
+ (add-to-list 'grep-find-ignored-files "GPATH")
+ ))
(global-set-key [M-f7] 'rgrep)
;;; ----------------------------------------------------------------
-;;; syntax highlighting.
+(message "syntax highlighting")
(setq font-lock-maximum-decoration t)
(global-font-lock-mode 1)
;;; ----------------------------------------------------------------
-;;; highlight selected text.
+(message "highlight selected text")
;; 1/-1, when the mark is active, the region is highlighted.
(transient-mark-mode 1)
@@ -369,7 +368,7 @@
)
;;; ----------------------------------------------------------------
-;;; highlighting current line.
+(message "highlighting current line")
(when window-system
(custom-set-faces '(hl-line ((t (:inherit highlight :background "light yellow")))))
@@ -377,13 +376,13 @@
)
;;; ----------------------------------------------------------------
-;;; paren, braces.
+(message "paren, braces")
(show-paren-mode 1) ; Parenthesis matching via highlighting.
(setq show-paren-style (quote parenthesis))
;;; ----------------------------------------------------------------
-;;; keyboard, mouse.
+(message "keyboard, mouse")
;; cyrillic-jis-russian for 567 is :,.
;; cyrillic-jcuken for SHIFT 567 is :,.
@@ -394,13 +393,13 @@
;; (pc-bindings-mode) ; Myself define keybinding, see
;;; ----------------------------------------------------------------
-;;; completion.
+(message "completion")
;; I remove partial-completion-mode because it depricated in Emacs 24.0.
;; Completion controled by 'completion-styles' variable.
;;; ----------------------------------------------------------------
-;;; mouse.
+(message "mouse")
;; Scroll Bar gets dragged by mouse butn 1
(global-set-key [vertical-scroll-bar down-mouse-1] 'scroll-bar-drag)
@@ -411,7 +410,7 @@
)
;;; ----------------------------------------------------------------
-;;; key binding, short-keys.
+(message "key binding, short-keys")
(global-set-key [home] 'beginning-of-line)
(global-set-key [end] 'end-of-line)
@@ -450,7 +449,7 @@
;; (global-set-key [language-change] 'ignore)
;;; ----------------------------------------------------------------
-;;; coding system, charset, locale, lang.
+(message "coding system, charset, locale, lang")
;; Emacs 23.1 no longer need codepage-setup.
(when (<= emacs-major-version 22)
@@ -491,12 +490,12 @@
)
;;; ----------------------------------------------------------------
-;;; open file, ffap.
+(message "open file, ffap")
(setq-default save-place t)
(require 'saveplace)
;;; ----------------------------------------------------------------
-;;; dired.
+(message "dired")
(require 'dired)
@@ -562,7 +561,7 @@
(define-key dired-mode-map (kbd "`") 'my-dired-flag-tmp-files)
;;; ----------------------------------------------------------------
-;;; ls-lisp, dired ls.
+(message "ls-lisp, dired ls")
;; If non-nil - use 'insert-directory-program', which I dislike.
(setq ls-lisp-use-insert-directory-program nil)
@@ -579,7 +578,7 @@
(require 'ls-lisp)
;;; ----------------------------------------------------------------
-;;; compression, archive.
+(message "compression, archive")
(require 'jka-compr) ; Automatic decompression, hooks for tar-mode.
(if (fboundp 'auto-compression-mode)
@@ -590,13 +589,13 @@
(add-to-list 'auto-mode-alist '("\\.\\(war\\|ear\\|sar\\|egg\\)\\'" . archive-mode))
;;; ----------------------------------------------------------------
-;;; image.
+(message "image")
(when (fboundp 'auto-image-file-mode)
(auto-image-file-mode 1))
;;; ----------------------------------------------------------------
-;;; recentf.
+(message "recentf")
(require 'recentf)
;; Prevent TRAMP to login on remote host when loading.
@@ -607,14 +606,14 @@
(global-set-key (kbd "\e\eq") 'recentf-open-files)
;;; ----------------------------------------------------------------
-;;; revert buffer.
+(message "revert buffer")
(global-set-key [f5] 'revert-buffer)
(setq revert-without-query (quote (".*")))
(setq auto-revert-interval 2)
;;; ----------------------------------------------------------------
-;;; convenient.
+(message "convenient")
(defun reglen()
"Show region length."
@@ -622,7 +621,7 @@
(message "%s" (- (region-end) (region-beginning))))
;;; ----------------------------------------------------------------
-;;; minibuffer.
+(message "minibuffer")
(require 'icomplete) ; Interactive completion in minibuffer.
(icomplete-mode 1)
@@ -636,13 +635,13 @@
) )
;;; ----------------------------------------------------------------
-;;; music.
+(message "music")
(setq gnus-audio-au-player "winamp.exe"
gnus-audio-directory "D:\\music"
gnus-audio-wav-player "winamp.exe")
;;; ----------------------------------------------------------------
-;;; browser.
+(message "browser")
(cond
((equal window-system 'w32)
@@ -653,7 +652,7 @@
(setq browse-url-browser-function 'browse-url-mozilla)))
;;; ----------------------------------------------------------------
-;;; calendar.
+(message "calendar")
;; (setq mark-holidays-in-calendar t)
;; (setq all-christian-calendar-holidays t)
@@ -663,12 +662,12 @@
(setq european-calendar-style t)
;;; ----------------------------------------------------------------
-;;; STANDARD HOOKS.
+(message "standard hooks")
(add-hook 'write-file-hooks 'time-stamp)
;;; ----------------------------------------------------------------
-;;; auto-fill.
+(message "auto-fill")
(setq-default fill-column 78)
@@ -684,7 +683,7 @@
(add-hook 'text-mode-hook 'turn-on-auto-fill)
;;; ----------------------------------------------------------------
-;;; unknown.
+(message "unknown")
;; browse-url mailcrypt gnus message sendmail bbdb pilot bibtex eiffel-mode emacs-w3m
;; eudc filladapt hugs-mode mpg123 php-mode ps-print
@@ -692,7 +691,7 @@
;; discography - variant of BibTeX mode for discographies
;;; ----------------------------------------------------------------
-;;; cacl, calculator.
+(message "cacl, calculator")
(setq-default calc-group-digits t)
(setq-default calc-group-char "'")
@@ -711,12 +710,12 @@
(insert result)))))
;;; ----------------------------------------------------------------
-;;; TeX, LaTeX.
+(message "TeX, LaTeX")
(setq tex-run-command "initex")
;;; ----------------------------------------------------------------
-;;; AUC TeX.
+(message "AUC TeX")
;(add-hook 'LaTeX-mode-hook 'LaTeX-install-toolbar)
;; (setq TeX-parse-self t) ; Enable parse on load.
@@ -753,7 +752,7 @@
; 'TeX-run-command nil t))))
;;; ----------------------------------------------------------------
-;;; reftex.
+(message "reftex")
;; Reftex is included with Emacs 21.1.
@@ -765,7 +764,7 @@
;; (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode
;;; ----------------------------------------------------------------
-;;; PreviewLatex.
+(message "PreviewLatex")
;(load "preview-latex.el" nil t t)
@@ -773,7 +772,7 @@
;(autoload 'LaTeX-preview-setup "preview")
;;; ----------------------------------------------------------------
-;;; Info.
+(message "Info")
;; Because of Debian policy documentation covered by FDL license with invariant sections not allowed in packet
;; repository tree. So it must be installed manually. My usual configuration is install user local software
@@ -782,13 +781,13 @@
(setenv "INFOPATH" "~/usr/share/info:"))
;;; ----------------------------------------------------------------
-;;; man, woman.
+(message "man, woman")
(setq woman-use-own-frame nil)
(setq woman-fill-frame t)
;;; ----------------------------------------------------------------
-;;; comint.
+(message "comint")
;; If non-nil, add a `/' to completed directories, ` ' to file names.
(setq comint-completion-addsuffix t)
@@ -796,7 +795,7 @@
(setq comint-eol-on-send t)
;;; ----------------------------------------------------------------
-;;; shell, sh, bash.
+(message "shell, sh, bash")
;; Setup Emacs to run bash as its primary shell.
;; (setq binary-process-input t)
@@ -833,7 +832,7 @@
)
;;; ----------------------------------------------------------------
-;;; spell, ispell, aspell.
+(message "spell, ispell, aspell")
;; Settings for spelling done in '.emacs-autogen'.
;(add-hook 'text-mode-hook 'flyspell-mode)
@@ -841,10 +840,10 @@
;(setq flyspell-delay '1)
;;; ----------------------------------------------------------------
-;;; GTD, PIM, organize, todo mode.
+(message "GTD, PIM, organize, todo mode")
;;; ----------------------------------------------------------------
-;;; org-mode.
+(message "org-mode")
(if (>= emacs-major-version 22)
(progn
@@ -873,7 +872,7 @@
(setq org-agenda-files '("~/.gtd/todo.org")) ))
;;; ----------------------------------------------------------------
-;;; remember-mode.
+(message "remember-mode")
(if (or (featurep 'remember) (fboundp 'remember))
(progn
@@ -891,7 +890,7 @@
) ))
;;; ----------------------------------------------------------------
-;;; TODO, XXX, FIXME highlight.
+(message "TODO, XXX, FIXME highlight")
;; Show blanks and FIXME
;; http://www.emacswiki.org/cgi-bin/wiki/EightyColumnRule
@@ -918,10 +917,10 @@
)
;;; ----------------------------------------------------------------
-;;; communication.
+(message "communication")
;;; ----------------------------------------------------------------
-;;; jabber.
+(message "jabber")
(when (featurep 'jabber)
(setq
@@ -949,7 +948,7 @@
"А любит Б, Б любит С, что делать A? Найти другую Б!")) )
(setq jabber-default-show (nth (random (length mgs-list)) mgs-list))
(setq jabber-default-status (nth (random (length mgs-list)) mgs-list))
- )
+ ) )
;; fsm used in emacs jabber
(when (featurep 'fsm)
@@ -983,7 +982,7 @@
(global-set-key (kbd "C-x C-j C-s") 'my-jabber-send)
;;; ----------------------------------------------------------------
-;;; rcirc.
+(message "rcirc")
;; Turn on logging everything to a special buffer, for debugging.
;; (setq rcirc-debug-flag t)
@@ -999,7 +998,7 @@
(setq rcirc-default-user-full-name user-full-name)
;;; ----------------------------------------------------------------
-;;; erc.
+(message "erc")
;; Take off noise message.
(setq erc-track-exclude-types '("JOIN" "PART" "QUIT" "NICK" "MODE"))
@@ -1010,7 +1009,7 @@
(setq erc-server-coding-system 'utf-8)
;;; ----------------------------------------------------------------
-;;; VCS, version control, cvs, svn, mercurial, hg, bazaar, bzr, git, fossil.
+(message "VCS, version control, cvs, svn, mercurial, hg, bazaar, bzr, git, fossil")
(if (equal window-system 'w32)
(progn
@@ -1048,20 +1047,20 @@
)
;;; ----------------------------------------------------------------
-;;; psvn.
+(message "psvn")
(setq svn-status-verbose t)
(setq svn-status-hide-unmodified t)
;;; ----------------------------------------------------------------
-;;; DVC.
+(message "DVC")
(when (featurep 'dvc-emacs)
(setq dvc-tips-enabled nil)
)
;;; ----------------------------------------------------------------
-;;; devel, prog, programming.
+(message "devel, prog, programming")
(add-to-list 'auto-mode-alist '("\\.cu$" . c-mode))
@@ -1085,7 +1084,7 @@
my-devel-mode-hook-list)
;;; ----------------------------------------------------------------
-;;; diff, patch, ediff, emerge.
+(message "diff, patch, ediff, emerge")
(setq diff-switches "-u")
@@ -1093,7 +1092,7 @@
(setq ediff-custom-diff-options "-u")
;;; ----------------------------------------------------------------
-;;; indenting.
+(message "indenting")
(setq standard-indent 4)
(setq c-basic-offset 4)
@@ -1113,7 +1112,7 @@
(setq i (- i 4))))
;;; ----------------------------------------------------------------
-;;; compile.
+(message "compile")
(setq compile-auto-highlight t
compile-command "make ")
@@ -1130,7 +1129,7 @@
;; (add-to-list 'compilation-mode-font-lock-keywords '("[ ]\\(/F[oe][^ ]+\\)" . 1))
;;; ----------------------------------------------------------------
-;;; TAGS, etags, ctags, GNU GLOBAL.
+(message "TAGS, etags, ctags, GNU GLOBAL")
;; One of 'tags-table-list' or 'tags-file-name' control which TAGS files to
;; use.
@@ -1147,7 +1146,7 @@
(global-set-key "\M-\r" 'complete-tag)
;;; ----------------------------------------------------------------
-;;; CEDET, semantic.
+(message "CEDET, semantic")
;; For debug use 'semantic-debug-idle-function' and 'semantic-debug-idle-work-function'.
@@ -1204,7 +1203,7 @@
)
;;; ----------------------------------------------------------------
-;;; imenu.
+(message "imenu")
(require 'imenu)
(when window-system
@@ -1218,17 +1217,17 @@
)
;;; ----------------------------------------------------------------
-;;; windows inf files for driver installing
+(message "windows inf files for driver installin")
(add-to-list 'auto-mode-alist '("\\.inf\\'" . conf-mode))
;;; ----------------------------------------------------------------
-;;; makefile, make.
+(message "makefile, make")
(add-to-list 'auto-mode-alist '("\\(Makefile\\|Makefile\\..+\\)\\'" . makefile-gmake-mode))
;;; ----------------------------------------------------------------
-;;; asm, assembler.
+(message "asm, assembler")
;; (setq-default asm-comment-char 59)
(add-hook 'asm-mode-hook '(lambda () (setq comment-start "/*") (setq comment-end "*/")) t)
@@ -1239,7 +1238,7 @@
;; (add-hook 'asm-mode-hook '(lambda () (local-set-key ":" ":")))
;;; ----------------------------------------------------------------
-;;; linker.
+(message "linker")
(when (fboundp 'iar-linker-config-mode)
(add-to-list 'auto-mode-alist '("\\.icf\\'" . iar-linker-config-mode))
@@ -1249,12 +1248,12 @@
)
;;; ----------------------------------------------------------------
-;;; lisp.
+(message "lisp")
(setq list-command-history-max 256)
;;; ----------------------------------------------------------------
-;;; C, c-mode, C++, c++-mode.
+(message "C, c-mode, C++, c++-mode")
(setq c-echo-syntactic-information-p t)
(add-hook 'c-mode-common-hook
@@ -1324,7 +1323,7 @@
))
;;; ----------------------------------------------------------------
-;;; javascript, js.
+(message "javascript, js")
(if (>= emacs-major-version 23)
(add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
@@ -1332,53 +1331,53 @@
)
;;; ----------------------------------------------------------------
-;;; bat file, batch.
+(message "bat file, batch")
;; loaded from 'generic-x.el'
;;; ----------------------------------------------------------------
-;;; nsis-mode.
+(message "nsis-mode")
(when (fboundp 'nsis-mode)
(add-to-list 'auto-mode-alist '("\\.\\(nsi\\|nsh\\)\\'" . nsis-mode))
)
;;; ----------------------------------------------------------------
-;;; csharp, c-sharp.
+(message "csharp, c-sharp")
(autoload 'csharp-mode "csharp-mode" "Major mode for editing C# code." t)
(add-to-list 'auto-mode-alist '("\\.cs$" . csharp-mode))
;;; ----------------------------------------------------------------
-;;; java.
+(message "java")
;;; ----------------------------------------------------------------
-;;; ECB.
+(message "ECB")
(setq ecb-tip-of-the-day nil)
;;; ----------------------------------------------------------------
-;;; html.
+(message "html")
;;; ----------------------------------------------------------------
-;;; nxml.
+(message "nxml")
(setq nxml-sexp-element-flag t)
(setq nxml-child-indent 2)
(setq nxml-attribute-indent 4)
;;; ----------------------------------------------------------------
-;;; psgml.
+(message "psgml")
(setq sgml-set-face t) ; for highlighting in sgml
;;; ----------------------------------------------------------------
-;;; sh, bash.
+(message "sh, bash")
(add-to-list 'auto-mode-alist '("\\.cygport\\'" . shell-script-mode))
;;; ----------------------------------------------------------------
-;;; printing.
+(message "printing")
;; Use Notepad to print plain text files to the default Windows printer
;(setq lpr-command "notepad")
@@ -1417,12 +1416,12 @@
; 'TeX-run-command nil t))))
;;; ----------------------------------------------------------------
-;;; SQL.
+(message "SQL")
(setq sql-password "")
;;; ----------------------------------------------------------------
-;;; backuping.
+(message "backuping")
(setq
make-backup-files t
@@ -1435,7 +1434,7 @@
version-control t) ; use versioned backups
;;; ----------------------------------------------------------------
-;;; auto save.
+(message "auto save")
(setq auto-save-default t)
;; If nil autosave to different than original to buffer file.
@@ -1443,8 +1442,8 @@
;; Note: if you kill unsaved file auto save file not deleted.
(setq delete-auto-save-files t)
-;; ----------------------------------------------------------------
-;; User welcome msg.
+;;; ----------------------------------------------------------------
+(message "User welcome msg")
(add-hook 'emacs-startup-hook
(lambda ()
@@ -1453,4 +1452,7 @@
"Nice day for Emacsing!")) )
(message (nth (random (length mgs-list)) mgs-list)))))
+(switch-to-buffer "*scratch*")
+(setq default-directory "~/")
+
;;; End loading...