Skip to content

Instantly share code, notes, and snippets.

@kings2u
Created June 13, 2024 03:52
Show Gist options
  • Save kings2u/30b7a22dfa38fe0d5dc18adaf0e5e9de to your computer and use it in GitHub Desktop.
Save kings2u/30b7a22dfa38fe0d5dc18adaf0e5e9de to your computer and use it in GitHub Desktop.
(require 'package)
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("nongnu" . "https://elpa.nongnu.org/nongnu/") ; will work some time after 4/5/2021 but not sure -- see below discontinuation of "org"
("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)
(setq use-package-verbose t) ; useful for debugging startup time
;; use abbrev expansion speed to test how cpu is doing
(setq-default abbrev-mode t)
(setq save-abbrevs nil)
(add-hook 'minibuffer-setup-hook (lambda () (setq-local abbrev-mode nil)))
(define-abbrev global-abbrev-table "n" "and")
(define-abbrev global-abbrev-table "t" "the")
(define-abbrev global-abbrev-table "th" "that")
(customize-set-variable 'large-file-warning-threshold nil)
(use-package counsel)
(use-package org)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment