From 8e458edf1ea6100ea9ca9ff4c2687be9baf0c0b4 Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Sat, 29 Feb 2020 06:01:49 +0000 Subject: [PATCH] Bug fixes on emacs setup --- .emacs | 13 ++++--------- .scripts/install-arch.sh | 1 + .scripts/install-deb.sh | 1 + 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.emacs b/.emacs index d6cd188..d220073 100644 --- a/.emacs +++ b/.emacs @@ -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 diff --git a/.scripts/install-arch.sh b/.scripts/install-arch.sh index 1c123a9..ca65e71 100644 --- a/.scripts/install-arch.sh +++ b/.scripts/install-arch.sh @@ -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 diff --git a/.scripts/install-deb.sh b/.scripts/install-deb.sh index 03ba3f6..f3eb575 100644 --- a/.scripts/install-deb.sh +++ b/.scripts/install-deb.sh @@ -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