;; EMACS INIT FILE $HOME/.emacs
;; Jakub Holy, May 1 2003
;;
;; NOTE:
;; After editing .emacs file it is not enough
;; to call 'evaluate-buffer' to make the changes valid.
;; It is necessary to restart Emacs (as far as I know)
;;
;;--------------------------------------------------------------
(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.
'(confirm-kill-emacs (quote y-or-n-p))
'(pc-select-meta-moves-sexps t)
'(pc-select-selection-keys-only t)
'(pc-selection-mode t t))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)
;; FUNCTION KEYS
;; Make F3 be compile etc
(global-set-key [f3] 'compile)
(global-set-key [f5] 'speedbar-get-focus) ;; focus to speedbar and back
(global-set-key [f12] 'jump-to-register)
(global-set-key [f11] 'point-to-register)
;; Start emacs server
(server-start)
(put 'narrow-to-region 'disabled nil)
;; (fset 'Insert-TAB
;; [?\C-q tab])
;; Make shift-tab to insert tab (useful in C mode, equals to C-q tab)
(add-hook 'c-mode--hook
'(lambda ()
(global-set-key [S-iso-lefttab] [?\C-q tab])))
(add-hook 'c++-mode-hook
'(lambda ()
(global-set-key [S-iso-lefttab] [?\C-q tab])))
;; SPEEDBAR - make a to run 'speedbar-toggle-show-all-files'
(add-hook 'speedbar-mode-hook
'(lambda ()
(define-key speedbar-key-map "a" 'speedbar-toggle-show-all-files)
))
;; RECENT FILE let emacs remember the last files opened
(recentf-mode)