Set up .scripts/install-emacs.el to load packages from MELPA
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
;; GETTING STARTED
|
||||
|
||||
;; INITIALIZE MELPA PACKAGES
|
||||
;; INITIALIZE MELPA
|
||||
;; Keep this on top
|
||||
;; https://melpa.org/#/getting-started
|
||||
(require 'package)
|
||||
@@ -12,14 +12,11 @@
|
||||
;; For important compatibility libraries like cl-lib
|
||||
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
|
||||
(package-initialize)
|
||||
|
||||
|
||||
;; setting the default directory for extra packages
|
||||
(add-to-list 'load-path "~/.emacs.d/lisp/")
|
||||
|
||||
;; SOME BASIC PREFERENCES
|
||||
;; Eliminates initial splash screen
|
||||
(setq inhibit-startup-message t
|
||||
inhibit-startup-echo-area-message t)
|
||||
;; turns off the menus at top
|
||||
(menu-bar-mode -1)
|
||||
(tool-bar-mode -1)
|
||||
@@ -43,9 +40,7 @@
|
||||
(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))
|
||||
;; Turn on Flyspell (no need for lazy-mode, it seems; perhaps delete that)
|
||||
;;(require 'flyspell-lazy)
|
||||
;;(flyspell-lazy-mode 1)
|
||||
;; Turn on Flyspell
|
||||
(dolist (hook '(text-mode-hook))
|
||||
(add-hook hook (lambda ()
|
||||
(flyspell-mode 1)
|
||||
@@ -140,3 +135,17 @@
|
||||
)
|
||||
)
|
||||
(put 'downcase-region 'disabled nil)
|
||||
(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.
|
||||
'(package-selected-packages
|
||||
(quote
|
||||
(wc-mode markdown-preview-mode markdown-mode+ markdown-mode pandoc-mode ox-reveal))))
|
||||
(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.
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user