dkukartsev /.emacs

(setq load-path (cons "~/emacs" load-path)) ; Emacs load path
(setq backup-directory-alist '(("" . "~/.emacs.d/emacs-backup")))
(setq make-backup-files         nil); Don't want any backup files
(setq auto-save-list-file-name  nil); Don't want any .saves files
(setq auto-save-default         nil); Don't want any auto saving
(setq search-highlight           t) ; Highlight search object
(setq query-replace-highlight    t) ; Highlight query object
(setq mouse-sel-retan-highlight t)  ; Keep mouse high-lightening
(setq kill-whole-line t)            ; Remove line with \n
(menu-bar-mode -1)                  ; Disable menu
(fset 'yes-or-no-p 'y-or-n-p)       ; Use "y or n" answers instead of full words "yes or no"
(require 'generic-x)                ; for javscript-geniric-mode
(setq transient-mark-mode t)
(setq inhibit-startup-message t) ; Silent boot
(setq initial-scratch-message nil) ; Clear scratch buffer
(setq message-log-max nil) ; Shut off message buffer
(setq column-number-mode t)
(setq line-number-mode t)
(cd "~/") ; Start in this directory
(recentf-mode 1) ; Recent files in menu
(require 'dired-single) ; Dired in one buffer
(require 'comment) ; Comment uncomment one button XXX shity
(require 'tramp) ; Remote file editing via ssh
(setq tramp-default-method "ssh")

;; HIGHLIGHT / INDENT
(require 'font-lock)
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
(show-paren-mode t)

;; BINDKEY
(cua-mode t)
(require 'redo)
(global-set-key "\C-r" 'redo)
(global-set-key "\C-g" 'goto-line)
(global-set-key "\C-d" 'kill-line)
(global-set-key "\C-s" 'save-buffer)
(global-set-key "\C-q" 'kill-buffer-quite)
(global-set-key "\C-w" 'bookmark-jump)
(global-set-key "\C-e" 'bookmark-set)
(global-set-key "\C-f" 'isearch-forward)
(global-set-key (read-kbd-macro "ESC .") 'forward-word)
(global-set-key (read-kbd-macro "ESC ,") 'backward-word)
(define-key isearch-mode-map "\C-f" 'isearch-repeat-forward)
(define-key isearch-mode-map "\C-p" 'isearch-repeat-backward)
(global-set-key (read-kbd-macro "ESC ") 'my-next-buffer)
(global-set-key (read-kbd-macro "ESC ") 'my-prev-buffer)
(global-set-key (read-kbd-macro "ESC ") 'windmove-up)
(global-set-key (read-kbd-macro "ESC ") 'windmove-down)
(global-set-key (read-kbd-macro "") 'switch-to-buffer)
(global-set-key (read-kbd-macro "") 'find-file)
(global-set-key (read-kbd-macro "") 'find-grep)
(global-set-key (read-kbd-macro "") 'tabbar-forward-group)
(global-set-key (read-kbd-macro "") 'comment-uncomment-line-or-region) ;; not my shity shit XXX
(global-set-key (read-kbd-macro "") 'toggle-truncate-lines)
(global-set-key (read-kbd-macro "") 'keyboard-escape-quit)
(global-set-key (read-kbd-macro "") 'save-buffers-kill-emacs)
(global-set-key [(control shift tab)] 'tabbar-backward)
(global-set-key [(control tab)]       'tabbar-forward)
;; Too dirty but works under putty
;;(global-set-key (read-kbd-macro "") 'beginning-of-line)
(define-key global-map "\M-[1~" 'beginning-of-line)
(global-set-key (read-kbd-macro "