|
|
@ -151,10 +151,10 @@ With arg, do it arg times."
|
|
|
|
(define-key c++-mode-map "\ef" 'c-forward-into-nomenclature)
|
|
|
|
(define-key c++-mode-map "\ef" 'c-forward-into-nomenclature)
|
|
|
|
(define-key c++-mode-map "\ed" 'agulbra-delete-into-nomenclature)
|
|
|
|
(define-key c++-mode-map "\ed" 'agulbra-delete-into-nomenclature)
|
|
|
|
(define-key c++-mode-map "\eb" 'c-backward-into-nomenclature)
|
|
|
|
(define-key c++-mode-map "\eb" 'c-backward-into-nomenclature)
|
|
|
|
;; fontify "public|protected|private Q_SLOTS" with one and the same face :)
|
|
|
|
;; fontify "public|protected|private slots" with one and the same face :)
|
|
|
|
;; NOTE: write face-at-point function to fontify those just like other
|
|
|
|
;; NOTE: write face-at-point function to fontify those just like other
|
|
|
|
;; access specifiers
|
|
|
|
;; access specifiers
|
|
|
|
(font-lock-add-keywords nil '(("\\<\\(\\(public\\|protected\\|private\\) Q_SLOTS\\)\\>"
|
|
|
|
(font-lock-add-keywords nil '(("\\<\\(\\(public\\|protected\\|private\\) slots\\)\\>"
|
|
|
|
. font-lock-reference-face)))
|
|
|
|
. font-lock-reference-face)))
|
|
|
|
;; Add (set magic-keys-mode nil) to your .emacs (before loading this file)
|
|
|
|
;; Add (set magic-keys-mode nil) to your .emacs (before loading this file)
|
|
|
|
;; to disable the magic keys in C++ mode.
|
|
|
|
;; to disable the magic keys in C++ mode.
|
|
|
@ -866,7 +866,7 @@ This function does not do any hidden buffer changes."
|
|
|
|
(not (bobp))
|
|
|
|
(not (bobp))
|
|
|
|
(save-excursion
|
|
|
|
(save-excursion
|
|
|
|
(c-safe (progn (c-backward-sexp 1) t))
|
|
|
|
(c-safe (progn (c-backward-sexp 1) t))
|
|
|
|
(and (looking-at "Q_SLOTS:")
|
|
|
|
(and (looking-at "slots:")
|
|
|
|
(c-backward-sexp 1))
|
|
|
|
(c-backward-sexp 1))
|
|
|
|
(looking-at c-opt-access-key)))
|
|
|
|
(looking-at c-opt-access-key)))
|
|
|
|
(c-backward-sexp 1)
|
|
|
|
(c-backward-sexp 1)
|
|
|
@ -2116,7 +2116,7 @@ This function does not do any hidden buffer changes."
|
|
|
|
(not (bobp))
|
|
|
|
(not (bobp))
|
|
|
|
(save-excursion
|
|
|
|
(save-excursion
|
|
|
|
(c-safe (progn (c-backward-sexp 1) t))
|
|
|
|
(c-safe (progn (c-backward-sexp 1) t))
|
|
|
|
(and (looking-at "Q_SLOTS:")
|
|
|
|
(and (looking-at "slots:")
|
|
|
|
(c-backward-sexp 1))
|
|
|
|
(c-backward-sexp 1))
|
|
|
|
(looking-at c-opt-access-key)))
|
|
|
|
(looking-at c-opt-access-key)))
|
|
|
|
(c-backward-sexp 1)
|
|
|
|
(c-backward-sexp 1)
|
|
|
@ -3172,7 +3172,7 @@ This function does not do any hidden buffer changes."
|
|
|
|
(save-excursion
|
|
|
|
(save-excursion
|
|
|
|
(c-safe (progn (c-backward-sexp 1) t))
|
|
|
|
(c-safe (progn (c-backward-sexp 1) t))
|
|
|
|
;; agulbrahack 2
|
|
|
|
;; agulbrahack 2
|
|
|
|
(and (looking-at "Q_SLOTS:")
|
|
|
|
(and (looking-at "slots:")
|
|
|
|
(c-backward-sexp 1))
|
|
|
|
(c-backward-sexp 1))
|
|
|
|
(looking-at c-access-key)))
|
|
|
|
(looking-at c-access-key)))
|
|
|
|
(c-backward-sexp 1)
|
|
|
|
(c-backward-sexp 1)
|
|
|
|