多半有重复的和没用的,一直没有清理过
.emacs
(load "~/.emacsconf/planner_conf.el") ;the new one, with muse (load "~/.emacsconf/muse-conf.el") ;replace wiki (load "~/.emacsconf/extra-el.el") (load "~/.emacsconf/cnfont.el") ;;;;;;;;;;;word wrapping;;;;;;;;;;;;;;;;;;;;;;; (setq line-move-visual nil) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (setq frame-title-format "Motivated By Laziness@%b") (setq inhibit-startup-message t) (setq default-fill-column 70) (setq default-major-mode 'text-mode) (show-paren-mode t) (setq show-paren-style 'parentheses) (mouse-avoidance-mode 'animate) (global-font-lock-mode t) (put 'set-goal-column 'disabled nil) (put 'narrow-to-region 'disabled nil) (put 'upcase-region 'disabled nil) (put 'downcase-region 'disabled nil) (put 'LaTeX-hide-environment 'disabled nil) (global-set-key [delete] 'delete-char) (global-set-key [kp-delete] 'delete-char) (global-set-key [end] 'end-of-line) (global-set-key [home] 'beginning-of-line) (global-set-key [f3] 'calendar) (global-set-key [f4] 'plan) (setq outline-minor-mode-prefix [(control o)]) ;(global-set-key [f9] 'preview-buffer) (setq line-number-mode t) (setq column-number-mode t) (defun my-text-mode-hook () (auto-fill-mode) (flyspell-mode)) ;hide menu- and tool-bar (defun hide-bar() (menu-bar-mode 0) (tool-bar-mode 0)) (add-hook 'window-setup-hook 'hide-bar) (defun my-notes-hook () (auto-fill-mode)) (add-hook 'notes-hook 'my-notes-hook) (setq adaptive-fill-regexp "[ \t]+\\|[ \t]*\\([0-9]+\\.\\|\\*+\\|\\-\\+\\)[ \t]*") (setq adaptive-fill-first-line-regexp "^\\* *$") (load "~/.elisp/notesmode.el") (add-hook 'text-mode-hook 'my-text-mode-hook) (add-hook 'diary-mode-hook 'my-text-mode-hook) (fset 'yes-or-no-p 'y-or-n-p) ;;name and email (setq user-full-name "dk") (setq user-mail-address "d k i s d o n k e y [at] g m a i l [dot] c o m") ;;don't flick the cursor (blink-cursor-mode -1) (global-set-key (kbd "C-SPC") 'nil)