emacs基础配置

(add-to-list 'load-path "~/.emacs.d")
;; markdown-mode
(autoload 'markdown-meode "markdown-mode"
  "Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(column-number-mode t)
 '(show-paren-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )
(setq make-backup-files nil)
(setq line-number-mode t)
(set-foreground-color "white")
(set-background-color "black")
;; 绑定alt-space为标记键
(global-unset-key (kbd "C-SPC"))
(global-set-key (kbd "M-s") 'set-mark-command)
(display-time-mode 1);显示时间,格式如下
(setq display-time-24hr-format t)
(setq display-time-day-and-date t)
;; 设置tab
(setq default-tab-width 4)
(setq-default indent-tabs-mode nil)

 

posted @ 2014-06-07 11:58  geksong  阅读(219)  评论(0编辑  收藏  举报