.emacs-obsolete
changeset 1142 7906db469af0
child 1199 dff272add01e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.emacs-obsolete	Wed May 21 20:07:17 2014 +0300
@@ -0,0 +1,44 @@
+;; -*- mode: emacs-lisp; coding: utf-8; fill-column: 78 -*-
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(iswitchb-mode 1)
+
+(setq iswitchb-regexp t)
+(setq iswitchb-use-virtual-buffers t)
+(setq iswitchb-buffer-ignore
+      '("^ "
+        "^\\*Buffer"
+        "^\\*Completions\\*"
+        "^\\*tramp"
+        "^\\*Dired log\\*"
+        "^\\*Quail Completions\\*"
+        "^\\*Disabled Command\\*"
+        "^TAGS"
+        ))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(require 'ffap)
+(ffap-bindings)
+
+;; I usually mistype "C-x C-f" to "C-x d" or "C-x C-d", so always use find-file,
+;; because when file if directory find-file load dired, if regular file open it.
+(global-set-key (kbd "C-x C-f") 'find-file-at-point)
+(global-set-key (kbd "C-x C-d") 'find-file-at-point)
+(global-set-key (kbd "C-x d") 'find-file-at-point)
+
+;; Stop 'ffap' in Dired as its suggestion is inconvenient.
+(define-key dired-mode-map (kbd "C-x C-f") 'find-file)
+(define-key dired-mode-map (kbd "C-x C-d") 'find-file)
+(define-key dired-mode-map (kbd "C-x d") 'find-file)
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(mapc (lambda (ext) (add-to-list 'completion-ignored-extensions ext))
+      '(
+        ".class" "~" ".aux"
+        ".o" ".obj" ".map" ".lib" ".lo" ".la" ".a" ".bin" ".exe"
+        ;; Place dir at end to appear at the start of completion-ignored-extensions.
+        "CVS/" ".hg/" ".svn/" ".git/" ".bzr/"
+        ) )