aboutsummaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorAshton Wiersdorf <mail@wiersdorf.dev>2023-04-13 10:34:08 -0600
committerAshton Wiersdorf <mail@wiersdorf.dev>2023-04-13 10:34:08 -0600
commitf7e2f3cbf7effe9f41fb062757ab6ffe02791a8b (patch)
tree64bf7fa16085dbd732ab4c281d647deaf2e470d5 /init.el
parent879d948fc9a3a3466f6ad86fee478af343ac15f7 (diff)
Add MELPA to package list; turn off transparency
Diffstat (limited to 'init.el')
-rw-r--r--init.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.el b/init.el
index 1106538..cf06376 100644
--- a/init.el
+++ b/init.el
@@ -27,6 +27,11 @@
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; Package initialization
+(require 'package)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
+(package-initialize)
+
;; If you want to turn off the welcome screen, uncomment this
;(setq inhibit-splash-screen t)
@@ -54,7 +59,7 @@
"Return a new file path of a given file path.
If the new path's directories does not exist, create them."
(let* ((backupRootDir "~/.emacs.d/emacs-backup/")
- (filePath (replace-regexp-in-string "[A-Za-z]:" "" fpath )) ; remove Windows driver letter in path, for example, “C:”
+ (filePath (replace-regexp-in-string "[A-Za-z]:" "" fpath )) ; remove Windows driver letter in path
(backupFilePath (replace-regexp-in-string "//" "/" (concat backupRootDir filePath "~") )))
(make-directory (file-name-directory backupFilePath) (file-name-directory backupFilePath))
backupFilePath))