Emacs: Semantic mode config.

Emacs: auto loading custom plugin folder.
Emacs: electric pairs mode (auto inserting pairs).
Xresources: URxvt Ctl+Shift unicode input disabled.
master
Pierre Neidhardt 2013-02-27 18:44:46 +01:00
parent 3f87c6d4f6
commit 880194c092
6 changed files with 31 additions and 14 deletions

View File

@ -20,7 +20,7 @@
!! plugins.
! URxvt*modifier: alt
! URxvt.iso14755: False
URxvt.iso14755: False
URxvt*saveLines: 5000
URxvt*scrollBar: false

6
.emacs
View File

@ -6,6 +6,7 @@
;; Main should be loaded first.
(load "~/.emacs.d/main" nil t)
(add-to-list 'load-path "~/.emacs.d/plugins")
(load "~/.emacs.d/functions" nil t)
(load "~/.emacs.d/modes" nil t)
@ -13,13 +14,8 @@
(load "~/.emacs.d/plugins" nil t)
(load "~/.emacs.d/theme" nil t)
;; Plugins
(load "~/.emacs.d/plugins/xclip" nil t)
(turn-on-xclip)
;; We need to put it at the end to make sure it doesn't get itself overriden by
;; other minor modes.
(my-keys-minor-mode 1)
;; End of file

View File

@ -6,6 +6,7 @@
;; Main should be loaded first.
(load "~/.emacs.d/main" nil t)
;; (add-to-list 'load-path "~/.emacs.d/plugins")
(load "~/.emacs.d/functions" nil t)
(load "~/.emacs.d/modes" nil t)
@ -13,10 +14,6 @@
;; (load "~/.emacs.d/plugins" nil t)
(load "~/.emacs.d/theme" nil t)
;; Plugins
(load "~/.emacs.d/plugins/xclip" nil t)
(turn-on-xclip)
;; We need to put it at the end to make sure it doesn't get itself overriden by
;; other minor modes.
(my-keys-minor-mode 1)

View File

@ -27,14 +27,12 @@
(interactive)
(query-replace-regexp " +
" "
")
)
"))
(defun list-buffers-switch () "Same as list buffers but switch to it afterward."
(interactive)
(list-buffers)
(switch-to-buffer-other-window "*Buffer List*")
)
(switch-to-buffer-other-window "*Buffer List*"))
(define-key my-keys-minor-mode-map (kbd "C-x C-b") 'list-buffers-switch)
;;==============================================================================

View File

@ -128,3 +128,23 @@
;; query-replace-regex fix on terminals.
(define-key my-keys-minor-mode-map (kbd "C-M-y") 'query-replace-regexp)
;; Semantic with ghost display (allows M-n and M-p to brwose completion).
(semantic-mode 1)
(define-key my-keys-minor-mode-map (kbd "C-c , d") 'semantic-ia-show-summary)
(define-key my-keys-minor-mode-map (kbd "M-TAB") 'semantic-complete-analyze-inline)
(setq semantic-complete-inline-analyzer-displayor-class 'semantic-displayor-ghost)
(defun my-c-mode-cedet-hook ()
(local-set-key "." 'semantic-complete-self-insert)
(local-set-key ">" 'semantic-complete-self-insert))
(add-hook 'c-mode-common-hook 'my-c-mode-cedet-hook)
;; Electric Pairs () [] {} "" etc;
(electric-pair-mode 1)
;; Buffer-mode convenience.
(add-hook
'Buffer-menu-mode-hook
(lambda ()
(local-set-key "RET" 'Buffer-menu-switch-other-window)))

View File

@ -147,3 +147,9 @@
;; ;; To change style, M-x customize-face and input zlc-selected-completion-face.
;; )
;; )
;;==============================================================================
;; xclip
;;==============================================================================
(if (require 'xclip nil t)
(turn-on-xclip))