Emacs 配置
;;default setting
;;load path
(setq load-path (cons "E:/My Codes/Tools/NTemacs/site-lisp/" load-path))
(setq load-path (cons "E:/My Codes/Tools/NTemacs/color-theme/" load-path))
;;default directory
(setq default-directory "F:/Emacs/workspace/")
;;make backup file
(setq make-backup-files nil)
;;html setting
;(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
;(setq auto-mode-alist (cons '("\.html$" . html-helper-mode) auto-mode-alist))
;;javascript setting
(autoload 'javascript-mode "javascript" nil t)
(setq auto-mode-alist (cons '("\.js$" . javascript-mode) auto-mode-alist))
;;python setting
(setq auto-mode-alist (cons '("\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist (cons '("python" . python-mode) interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
;;add these lines if you like color-based syntax highlighting
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
;; color theme
(require 'color-theme)
(color-theme-initialize)
;;(color-theme-tty-dark)
(color-theme-comidia)
;;(color-theme-dark-laptop)
;;set title
(setq frame-title-format "yoshow's emacs")
(iswitchb-mode 1)
(tool-bar-mode nil);
;;(require 'bs)
;;(global-set-key (kbd "C-x C-b" 'bs-show)
(transient-mark-mode 1)
;; font setting
;;
浙公网安备 33010602011771号