Emacs: removed 'suspend' binding and made *-error bindings global.

master
Pierre Neidhardt 2013-06-12 17:05:10 +02:00
parent 38809b91da
commit 6c08d4c442
3 changed files with 13 additions and 10 deletions

View File

@ -2,8 +2,7 @@
;; MAIN
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Folders.
;; Cache folder is everything we do not want to track.
(setq emacs-cache-folder "~/.cache/emacs/")
(if
(not (file-directory-p emacs-cache-folder))
@ -31,6 +30,10 @@
;; Default mode
(setq default-major-mode 'text-mode)
;; Disable suspend key since it is useless on emacs server
(global-unset-key (kbd "C-z"))
(global-unset-key (kbd "C-x C-z"))
;; For convenience.
(setq inhibit-startup-screen t)
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
@ -257,3 +260,7 @@
(lambda ()
(speedbar-toggle-updates)))
;; Compilation error report.
(define-key my-keys-minor-mode-map (kbd "<f12>") 'next-error)
(define-key my-keys-minor-mode-map (kbd "<f11>") 'previous-error)

View File

@ -381,8 +381,7 @@ properly escaped with double-quotes in case it has spaces."
(local-set-key (kbd "M-TAB") 'semantic-complete-analyze-inline)
;; (local-set-key "." 'semantic-complete-self-insert) ; This is a bit slow.
;; (local-set-key ">" 'semantic-complete-self-insert)
(local-set-key (kbd "<f12>") 'next-error)
(local-set-key (kbd "<f10>") 'previous-error)))
))
;;==============================================================================
;; C++-mode
@ -434,10 +433,7 @@ properly escaped with double-quotes in case it has spaces."
'c++-mode-hook
(lambda ()
(local-set-key (kbd "C-c C-c") 'c++-compile)
(local-set-key (kbd "M-TAB") 'semantic-complete-analyze-inline)
(local-set-key (kbd "<f12>") 'next-error)
(local-set-key (kbd "<f10>") 'previous-error)))
(local-set-key (kbd "M-TAB") 'semantic-complete-analyze-inline)))
;;==============================================================================
;; Common LISP

View File

@ -14,8 +14,8 @@
## Numlock
numlockx on
## Keymap. Only useful on multi-user environment.
# setxkbmap frex
## Keymap. Only useful on multi-user environment where users have different keymaps.
setxkbmap us intl
xmodmap ~/.xmodmap
if [ "$OSTYPE" = "linux-gnu" ] ; then