X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=dot-files%2F_emacs_el;h=942e9a88a5e66e0e9b540c982bef72c2e45957d8;hb=0c6d6db093782431f54a7129afebc8cc0fa5aa0b;hp=a5f47f821bc0a4445b1fa5d341c56c9d0570ff1a;hpb=530fdcb15a1fea55198cb2aae298f7d510c61dfb;p=sugar.git diff --git a/dot-files/_emacs_el b/dot-files/_emacs_el index a5f47f8..942e9a8 100644 --- a/dot-files/_emacs_el +++ b/dot-files/_emacs_el @@ -21,6 +21,7 @@ (global-set-key (kbd "C-\\" ) 'toggle-input-method) (global-set-key (kbd "C-RET") 'completion-at-point) +(global-set-key (kbd "C-") 'completion-at-point) (unless window-system (normal-erase-is-backspace-mode t)) @@ -73,9 +74,12 @@ ((equal host "aria.cielonegro.org") (progn (set-frame-font "Dejavu Sans Mono 13" t) - (set-fontset-font nil 'japanese-jisx0208 "さざなみゴシック") - (set-fontset-font nil 'japanese-jisx0212 "さざなみゴシック") - (set-fontset-font nil 'katakana-jisx0201 "さざなみゴシック")))))) + ;; Emacs 24.4.1 somehow gets very slow when the following + ;; lines are uncommented. + ;;(set-fontset-font nil 'japanese-jisx0208 "さざなみゴシック") + ;;(set-fontset-font nil 'japanese-jisx0212 "さざなみゴシック") + ;;(set-fontset-font nil 'katakana-jisx0201 "さざなみゴシック") + ))))) ;; Hooks for newline-and-indent ------------------------------------------------ ;(mapcar (lambda (hook) @@ -141,6 +145,11 @@ (color-theme-initialize) (color-theme-subtle-hacker))) +;; multi-term +(autoload 'multi-term "multi-term" + "Create new term buffer. +Will prompt you shell name when you type `C-u' before this command." t) + ;; auto-complete (require-if-present 'auto-complete-config) (if (featurep 'auto-complete-config) @@ -196,6 +205,10 @@ (autoload 'lua-mode "lua-mode" "Lua editing mode." t) (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode)) +;; protobuf-mode +(autoload 'protobuf-mode "protobuf-mode") +(add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode)) + ;; scala-mode2 (add-to-list 'load-path "~/sandbox/_scala/scala-mode2") (require-if-present 'scala-mode2) @@ -404,6 +417,11 @@ (setq tsv-separator-list '("\t")) ;(add-to-list 'auto-mode-alist '("\\.[Tt][Ss][Vv]\\'" . tsv-mode)) +;; markdown-mode +;; http://jblevins.org/projects/markdown-mode/ +(autoload 'markdown-mode "markdown-mode.el" "Major mode for editing Markdown files" t) +(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) + ;; yaml-mode (autoload 'yaml-mode "yaml-mode" "Major mode for editing YAML files." t) @@ -640,6 +658,7 @@ '(tramp-default-method "sshx") '(uniquify-buffer-name-style (quote forward) nil (uniquify)) '(uniquify-trailing-separator-p t) + '(vc-cvs-diff-switches (quote ("-u"))) '(vc-cvs-stay-local nil) '(w3m-bookmark-file-coding-system (quote utf-8)) '(w3m-coding-system (quote utf-8)) @@ -654,6 +673,7 @@ '(w3m-output-coding-system (quote utf-8)) '(w3m-terminal-coding-system (quote utf-8)) '(w3m-use-cookies t) + '(whitespace-global-modes (quote (not mew-draft-mode mew-summary-mode))) '(whitespace-style (quote (face tabs trailing space-before-tab newline indentation empty space-after-tab))) @@ -675,6 +695,7 @@ '(textile-ol-bullet-face ((t (:foreground "dark orange")))) '(textile-ul-bullet-face ((t (:foreground "deep sky blue")))) '(which-func-face ((t (:background "black" :foreground "dark orange")))) + '(whitespace-empty ((t (:background "gray20" :foreground "firebrick")))) '(whitespace-indentation ((t (:foreground "dimgray" :underline t)))) '(whitespace-line ((t (:background "gray20")))) '(whitespace-tab ((t (:background "grey22" :foreground "dim gray" :underline (:color foreground-color :style wave))))))