Created
November 28, 2012 09:43
-
-
Save t1anchen/4160174 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; golang mode | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(add-to-list 'load-path "C:/go/misc/emacs/") | |
(require 'go-mode-load) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; FONT | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(set-default-font "DejaVu Sans Mono-10") | |
(set-fontset-font "fontset-default" 'han '("WenQuanYi Micro Hei Mono")) | |
(set-fontset-font "fontset-default" 'japanese-jisx0208 '("WenQuanYi Micro Hei Mono")) | |
(set-fontset-font "fontset-default" 'katakana-jisx0201 '("WenQuanYi Micro Hei Mono")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) | |
(global-set-key "\C-cl" 'org-store-link) | |
(global-set-key "\C-ca" 'org-agenda) | |
(global-set-key "\C-cb" 'org-iswitchb) | |
(global-font-lock-mode 1) ; Activate font-lock-mode for | |
; all buffers | |
(add-hook 'org-mode 'turn-on-font-lock) ; Org buffers only | |
(transient-mark-mode 1) ; Toggle on the transient mark | |
; mode | |
(defadvice org-time-stamp (around org-time-stamp-new-format activate) | |
(let ((org-time-stamp-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%dT%H:%M:%S+08:00>"))) | |
ad-do-it)) ; Cuz org-time-stamp-formats | |
; is defined by defconst. It's | |
; only available to be | |
; modified by defadvice way | |
; (17.3 Around-Advice, GNU | |
; Emacs Lisp Reference) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun insert-done-in-diary () | |
(interactive "*") | |
(insert "[DONE] ")) | |
(defun insert-todo-in-diary () | |
(interactive "*") | |
(insert "[TODO] ")) | |
(defun insert-info-in-diary () | |
(interactive "*") | |
(insert "[INFO] ")) | |
(defun insert-important-in-diary () | |
(interactive "*") | |
(insert "[IMPORTANT] ")) | |
(defun insert-emergency-in-diary () | |
(interactive "*") | |
(insert "[EMERGENCY] ")) | |
(global-set-key (kbd "C-c 1 t") 'insert-todo-in-diary) | |
(global-set-key (kbd "C-c 1 d") 'insert-done-in-diary) | |
(global-set-key (kbd "C-c 1 i") 'insert-info-in-diary) | |
(global-set-key (kbd "C-c 1 !") 'insert-important-in-diary) | |
(global-set-key (kbd "C-c 1 e") 'insert-emergency-in-diary) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; RST-MODE | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(setq rst-level-face-base-color "black") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment