Bug fixes on emacs setup

This commit is contained in:
Nathan Schneider
2020-02-29 06:01:49 +00:00
parent 7cf141f18e
commit 8e458edf1e
3 changed files with 6 additions and 9 deletions
+4 -9
View File
@@ -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