Bug fixes on emacs setup
This commit is contained in:
@@ -4,13 +4,8 @@
|
||||
;; Keep this on top
|
||||
;; https://melpa.org/#/getting-started
|
||||
(require 'package)
|
||||
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
|
||||
(not (gnutls-available-p))))
|
||||
(url (concat (if no-ssl "http" "https") "://melpa.org/packages/")))
|
||||
(add-to-list 'package-archives (cons "melpa" url) t))
|
||||
(when (< emacs-major-version 24)
|
||||
;; For important compatibility libraries like cl-lib
|
||||
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
|
||||
(add-to-list 'package-archives
|
||||
'("melpa-stable" . "https://stable.melpa.org/packages/"))
|
||||
(package-initialize)
|
||||
|
||||
;; setting the default directory for extra packages
|
||||
@@ -20,8 +15,8 @@
|
||||
;; turns off the menus at top
|
||||
(menu-bar-mode -1)
|
||||
(tool-bar-mode -1)
|
||||
;; enable longlines-mode for text files
|
||||
(add-hook 'text-mode-hook 'visual-line-mode)
|
||||
;; enable word wrap
|
||||
(global-visual-line-mode t)
|
||||
;; load word-count tools, use "wc" command to get instant count
|
||||
(load "wc-mode")
|
||||
;; but normally don't initialize because it's too CPU-intensive on large files
|
||||
|
||||
@@ -21,6 +21,7 @@ sudo pacman -S keepassxc
|
||||
|
||||
# emacs
|
||||
sudo pacman -S emacs
|
||||
sudo pacman -S aspell-en # English dictionary
|
||||
emacs --script install-emacs.el # not working
|
||||
|
||||
# pandoc
|
||||
|
||||
@@ -14,6 +14,7 @@ sudo apt-get install nodejs
|
||||
|
||||
# emacs
|
||||
sudo apt-get -y install emacs-gtk
|
||||
sudo apt-get -y install aspell aspell-en
|
||||
emacs --script install-emacs.el
|
||||
|
||||
# pandoc
|
||||
|
||||
Reference in New Issue
Block a user