Emacs: removed 'suspend' binding and made *-error bindings global.
parent
38809b91da
commit
6c08d4c442
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue