diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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)) |