diff options
author | Ashton Wiersdorf <mail@wiersdorf.dev> | 2023-04-13 10:34:08 -0600 |
---|---|---|
committer | Ashton Wiersdorf <mail@wiersdorf.dev> | 2023-04-13 10:34:08 -0600 |
commit | f7e2f3cbf7effe9f41fb062757ab6ffe02791a8b (patch) | |
tree | 64bf7fa16085dbd732ab4c281d647deaf2e470d5 | |
parent | 879d948fc9a3a3466f6ad86fee478af343ac15f7 (diff) |
Add MELPA to package list; turn off transparency
-rw-r--r-- | early-init.el | 15 | ||||
-rw-r--r-- | init.el | 7 | ||||
-rw-r--r-- | mixins/base.el | 20 |
3 files changed, 27 insertions, 15 deletions
diff --git a/early-init.el b/early-init.el index 313b696..91b9fcd 100644 --- a/early-init.el +++ b/early-init.el @@ -27,11 +27,14 @@ (setq frame-resize-pixelwise t) (tool-bar-mode -1) ; All these tools are in the menu-bar anyway (setq default-frame-alist '((fullscreen . maximized) - (vertical-scroll-bars . nil) - (horizontal-scroll-bars . nil) + + ;; You can turn off scroll bars by uncommenting these lines: + ;; (vertical-scroll-bars . nil) + ;; (horizontal-scroll-bars . nil) + + ;; Setting the face in here prevents flashes of + ;; color as the theme gets activated + (background-color . "#000000") (ns-appearance . dark) - (ns-transparent-titlebar . t) - (alpha-background . 50))) + (ns-transparent-titlebar . t))) -(set-face-background 'default "#000000") -(set-face-foreground 'default "#cccccc") @@ -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)) diff --git a/mixins/base.el b/mixins/base.el index f8ea48b..71158cd 100644 --- a/mixins/base.el +++ b/mixins/base.el @@ -59,6 +59,9 @@ ;; candidate you select (setf (alist-get ?. avy-dispatch-alist) 'bedrock/avy-action-embark)) +(use-package embark-consult + :ensure t) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Minibuffer and completion @@ -85,14 +88,14 @@ (global-corfu-mode)) ;; Part of corfu -(use-package corfu-popupinfo - :after corfu - :hook (corfu-mode . corfu-popupinfo-mode) - :custom - (corfu-popupinfo-delay '(0.25 . 0.1)) - (corfu-popupinfo-hide nil) - :config - (corfu-popupinfo-mode)) +;; (use-package corfu-popupinfo +;; :after corfu +;; :hook (corfu-mode . corfu-popupinfo-mode) +;; :custom +;; (corfu-popupinfo-delay '(0.25 . 0.1)) +;; (corfu-popupinfo-hide nil) +;; :config +;; (corfu-popupinfo-mode)) ;; Make corfu popup come up in terminal overlay (use-package corfu-terminal @@ -110,6 +113,7 @@ (add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter)) (use-package eshell + :elpaca nil :bind (("C-r" . consult-history))) ;; Orderless: powerful completion style |