我的emacs配置文件


(require 'package)
(add-to-list 'package-archives
             '("melpa-stable" . "https://stable.melpa.org/packages/"))
(package-initialize)


(require 'package)
(add-to-list 'package-archives
             '("elpy" . "http://jorgenschaefer.github.io/packages/"))
(package-initialize)
;(elpy-enable)



(add-to-list 'load-path "~/.emacs.d/lisp")
;(add-hook 'before-save-hook 'delete-trailing-whitespace)
;(add-to-list 'write-file-functions 'delete-trailing-whitespace)
;(add-hook 'verilog-mode-hook
;    (lambda () (add-to-list 'write-file-functions 'delete-trailing-whitespace)))

(add-hook 'verilog-mode-hook '(lambda ()
  (add-hook 'write-file-functions (lambda()
      (untabify (point-min) (point-max))
      nil))))

;(add-hook 'org-mode-hook (lambda () (setq truncate-lines nil)))

(load "uuidgen-0.3")

(setq-default indent-tabs-mode nil)
(setq-default tab-width 2)
(setq-default tab-stop-list (number-sequence 2 120 2))
(setq c-basic-indent 4)
(setq sh-basic-offset 4)

;; backup in one place. flat, no tree structure
(setq backup-directory-alist '(("" . "~/.emacs.d/emacs-backup")))

(custom-set-variables
 '(markdown-command "/usr/bin/pandoc"))


(global-linum-mode t)

(desktop-save-mode 1)


(autoload 'uuidgen-0.3 "uuidgen-0.3" "test 20171018 tets" t)


(autoload 'markdown-mode "markdown-mode"
   "Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))

(autoload 'gfm-mode "markdown-mode"
   "Major mode for editing GitHub Flavored Markdown files" t)
(add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode))


;;(global-set-key [(control c) r] 'revert-buffer)
(global-set-key (kbd "") 'revert-buffer)
(global-set-key (kbd "C-l") 'goto-line)


(global-auto-revert-mode 1)

你可能感兴趣的:(我的emacs配置文件)