Emacs: load order fixes
parent
5be854c348
commit
0ddfdddde3
|
@ -13,7 +13,7 @@
|
|||
|
||||
;; Place backup files in specific directory.
|
||||
(setq backup-directory-alist
|
||||
`((".*" . ,(concat emacs-cache-folder "backups/"))))
|
||||
`((".*" . ,(concat emacs-cache-folder "backups/"))))
|
||||
|
||||
;; Other backup options.
|
||||
; (setq backup-inhibited t) ;; Disable backup files.
|
||||
|
@ -366,8 +366,8 @@ has errors and/or warnings."
|
|||
(turn-on-xclip))
|
||||
|
||||
;; Bison/flex -- Fallback to c-mode.
|
||||
(add-to-list 'auto-mode-alist '("\\.yy?\\'" . c-mode)))
|
||||
(add-to-list 'auto-mode-alist '("\\.l\\'" . c-mode)))
|
||||
(add-to-list 'auto-mode-alist '("\\.yy?\\'" . c-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.l\\'" . c-mode))
|
||||
(if (require 'bison-mode nil t)
|
||||
(add-to-list 'auto-mode-alist '("\\.yy?\\'" . bison-mode)))
|
||||
(if (require 'flex-mode nil t)
|
||||
|
|
|
@ -146,14 +146,15 @@ restored."
|
|||
|
||||
;; Qt base directory, meaning the directory where the 'Qt' directory can be found.
|
||||
;; Adapt accordingly.
|
||||
(setq qt4-base-dir "/usr/include/qt4")
|
||||
(setq qt4-gui-dir (concat qt4-base-dir "/QtGui"))
|
||||
(semantic-add-system-include qt4-base-dir 'c++-mode)
|
||||
(semantic-add-system-include qt4-gui-dir 'c++-mode)
|
||||
(add-to-list 'auto-mode-alist (cons qt4-base-dir 'c++-mode))
|
||||
(add-hook
|
||||
'c++-mode-hook
|
||||
(lambda ()
|
||||
(add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-base-dir "/Qt/qconfig.h"))
|
||||
(add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-base-dir "/Qt/qconfig-large.h"))
|
||||
(add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-base-dir "/Qt/qglobal.h"))))
|
||||
(when (fboundp 'semantic-add-system-include)
|
||||
(setq qt4-base-dir "/usr/include/qt4")
|
||||
(setq qt4-gui-dir (concat qt4-base-dir "/QtGui"))
|
||||
(semantic-add-system-include qt4-base-dir 'c++-mode)
|
||||
(semantic-add-system-include qt4-gui-dir 'c++-mode)
|
||||
(add-to-list 'auto-mode-alist (cons qt4-base-dir 'c++-mode))
|
||||
(add-hook
|
||||
'c++-mode-hook
|
||||
(lambda ()
|
||||
(add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-base-dir "/Qt/qconfig.h"))
|
||||
(add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-base-dir "/Qt/qconfig-large.h"))
|
||||
(add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-base-dir "/Qt/qglobal.h")))))
|
||||
|
|
|
@ -85,9 +85,10 @@
|
|||
(set-face-foreground 'ediff-odd-diff-C nil)))
|
||||
|
||||
;; Show paren.
|
||||
(set-face-background 'show-paren-match-face (face-background 'default))
|
||||
(set-face-foreground 'show-paren-match-face "#def")
|
||||
(set-face-attribute 'show-paren-match-face nil :weight 'extra-bold)
|
||||
(when (boundp 'show-paren-match-face)
|
||||
(set-face-background 'show-paren-match-face (face-background 'default))
|
||||
(set-face-foreground 'show-paren-match-face "#def")
|
||||
(set-face-attribute 'show-paren-match-face nil :weight 'extra-bold))
|
||||
|
||||
;; Make Emacs and Mutt colors fit.
|
||||
(font-lock-add-keywords
|
||||
|
|
Loading…
Reference in New Issue