logo

Emacs Config

init.el

(add-to-list 'load-path "~/.config/emacs/lisp/")

(set-face-attribute 'default nil :font "dylex terminal" :height 20)
(set-face-attribute 'fixed-pitch nil :font "dylex terminal" :height 20)
(set-face-attribute 'variable-pitch nil :font "dylex terminal" :height 20)

(keymap-global-set "<escape>" 'keyboard-escape-quit)

(require 'local-theme)
(load-theme 'local t)

(setq auth-source-pass-filename "~/.local/share/pash"
      completion-auto-help "always"
      completion-auto-select nil
      completion-category-defaults nil
      completion-ignore-case t
      completions-format 'one-column
      completions-header-format nil
      completion-show-help nil
      completions-max-height 10
      completion-styles '(basic initials partial-completion substring)
      dired-listing-switches "-laGh1v --time-style=+%F --group-directories-first"
      enable-recursive-minibuffers t
      epa-pinentry-mode 'loopback
      eshell-prompt-function (lambda nil (concat (eshell/pwd) " 𐤀 "))
      isearch-lax-whitespace t
      minibuffer-eldef-shorten-default t
      org-cycle-separator-lines 0
      org-edit-src-content-indentation 0
      org-fontify-quote-and-verse-blocks t
      org-fontify-whole-heading-line t
      org-hide-block-startup nil
      org-hide-emphasis-markers t
      org-pretty-entities t
      org-src-fontify-natively t
      org-src-preserve-indentation nil
      org-src-tab-acts-natively nil
      org-startup-folded 'content
      org-startup-with-inline-images t
      rcirc-cycle-completion-flag t
      rcirc-fill-column 120
      rcirc-prompt "𐤀 "
      rcirc-reconnect-delay 5
      rcirc-server-alist '(("irc.eu.libera.chat" :port 6697 :nick "gksudo" :encryption tls :channels ("#gksudo" "#gentoo" "#emacs")))
      rcirc-time-format "[%H:%M:%S] "
      read-buffer-completion-ignore-case t
      read-file-name-completion-ignore-case t
      resize-mini-frames t
      resize-mini-windows t
      search-whitespace-regexp ".*?"
      suggest-key-bindings nil
      tab-always-indent 'complete
      vc-follow-symlinks t)

(auth-source-pass-enable)

early-init.el

;;; early-init.el --- earliest birds -*- lexical-binding: t; -*-

(setq user-emacs-directory (expand-file-name "~/.cache/emacs/"))

(when (featurep 'native-compile)
  (setq native-comp-async-report-warnings-errors nil
        native-comp-deferred-compilation t))

(blink-cursor-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(set-fringe-mode 4)
(tool-bar-mode -1)
(tooltip-mode -1)

(setq-default cursor-in-non-selected-windows nil
              help-window-select t
              inhibit-startup-buffer-menu t
              inhibit-startup-screen t
              mode-line-format '("%e %+ %b")
              select-enable-clipboard t
              show-help-function nil)

(setq auto-save-default nil
      auto-save-list-file-prefix nil
      create-lockfiles nil
      custom-file (make-temp-file "emacs-custom")
      frame-resize-pixelwise t
      gc-cons-threshold (* 50 1000 1000)
      inhibit-splash-screen t
      inhibit-startup-message t
      initial-major-mode 'fundamental-mode
      initial-scratch-message ""
      load-prefer-newer noninteractive
      make-backup-files nil
      package-enable-at-startup nil
      package-native-compile t
      package-user-dir (concat user-emacs-directory "packages/")
      ring-bell-function 'ignore)

(set-frame-parameter nil 'alpha-background 90)
(add-to-list 'default-frame-alist '(alpha-background . 90))

;; Local Variables:
;; no-byte-compile: t
;; End:
;;; early-init.el ends here

lisp/local-theme.el

;;; local-theme.el --- local theme

(deftheme local "local theme")

(let ((class '((class color) (min-colors 89)))
      (local-fg "#ffe1e3")
      (local-bg (if (display-graphic-p) "#0e0e10" nil))
      (local-blue-0 "#3a3f5a")
      (local-region "#4bedba")
      (local-green-0 "#a1bf78")
      (local-green-1 "#85A7A5")
      (local-green-2 "#75b5aa")
      (local-grey-0 "#888888")
      (local-grey-1 "#363636")
      (local-grey-2 "#444444")
      (local-orange-0 "#E5C078")
      (local-orange-1 "#f4bf75")
      (local-purple-0 "#8197bf")
      (local-pink-0 "#f4428f")
      (local-red-0 "#CC6666")
      (local-red-1 "#af5f5f")
      (local-red-2 "#d75f5f")
      (local-red-3 "#ff73fd")
      (local-yellow-0 "#E5C078")
      (local-hl-line "#111111"))

      (custom-theme-set-faces
       'local
       `(default ((,class (:foreground ,local-fg :background ,local-bg))))
       `(diredp-date-time ((,class (:foreground ,local-fg))))
       `(dired-directory ((,class (:foreground ,local-blue-0))))
       `(diredp-deletion ((,class (:foreground ,local-red-0 :background ,local-bg))))
       `(diredp-dir-heading ((,class (:foreground ,local-yellow-0 :background ,local-bg))))
       `(diredp-dir-name ((,class (:foreground ,local-green-1 :background ,local-bg))))
       `(diredp-dir-priv ((,class (:foreground ,local-green-1 :background ,local-bg))))
       `(diredp-exec-priv ((,class (:foreground ,local-fg :background ,local-bg))))
       `(diredp-file-name ((,class (:foreground ,local-fg))))
       `(diredp-file-suffix ((,class (:foreground ,local-fg))))
       `(diredp-link-priv ((,class (:foreground ,local-fg))))
       `(diredp-number ((,class (:foreground ,local-fg))))
       `(diredp-no-priv ((,class (:foreground ,local-fg :background ,local-bg))))
       `(diredp-rare-priv ((,class (:foreground ,local-red-0 :background ,local-bg))))
       `(diredp-read-priv ((,class (:foreground ,local-fg :background ,local-bg))))
       `(diredp-symlink ((,class (:foreground ,local-red-3))))
       `(diredp-write-priv ((,class (:foreground ,local-fg :background ,local-bg))))
       `(font-lock-builtin-face ((,class (:foreground ,local-blue-0))))
       `(font-lock-comment-face ((,class (:slant italic :foreground ,local-grey-0))))
       `(font-lock-constant-face ((,class (:foreground ,local-orange-1))))
       `(font-lock-doc-face ((,class (:foreground ,local-green-0))))
       `(font-lock-function-name-face ((,class (:foreground ,local-fg))))
       `(font-lock-keyword-face ((,class (:foreground ,local-purple-0))))
       `(font-lock-preprocessor-face ((,class (:foreground ,local-green-1))))
       `(font-lock-string-face ((,class (:foreground ,local-green-0))))
       `(font-lock-type-face ((,class (:foreground ,local-orange-0))))
       `(font-lock-variable-name-face ((,class (:foreground ,local-fg))))
       `(font-lock-warning-face ((,class (:foreground ,local-red-1))))
       `(font-lock-regexp-grouping-construct ((t (:foreground ,local-yellow-0 :bold t))))
       `(font-lock-regexp-grouping-backslash ((t (:foreground ,local-red-0 :bold t))))
       `(fringe ((,class (:foreground ,local-fg :background ,local-bg))))
       `(parenthesis ((,class (:foreground ,local-grey-2))))
       `(header-line ((,class (:foreground ,local-fg))))
       `(highlight ((,class (:foreground ,local-pink-0))))
       `(highlight-indentation-face ((,class (:background ,local-grey-1))))
       `(highlight-indentation-current-column-face ((,class (:background ,local-grey-1))))
       `(hl-line ((,class (:background ,local-hl-line))))
       `(isearch ((,class (:foreground ,local-fg :background ,local-red-1))))
       `(isearch-fail ((,class (:background ,local-red-1))))
       `(lazy-highlight ((,class (:foreground ,local-red-1 :background unspecified))))
       `(match ((,class (:background ,local-red-1))))
       `(minibuffer-prompt ((,class (:foreground ,local-fg))))
       `(mode-line ((,class (:foreground ,local-fg :background unspecified))))
       `(mode-line-inactive ((,class (:foreground ,local-grey-1 :background unspecified))))
       `(org-checkbox ((,class (:foreground ,local-green-1))))
       `(org-date ((,class (:foreground ,local-grey-0))))
       `(org-document-info-keyword ((,class (:foreground ,local-yellow-0))))
       `(org-document-title ((,class (:foreground ,local-yellow-0))))
       `(org-verbatim ((,class (:foreground ,local-blue-0))))
       `(org-code ((,class (:foreground ,local-purple-0))))
       `(org-done ((,class (:foreground ,local-green-2))))
       `(org-level-1 ((,class (:foreground ,local-pink-0))))
       `(org-level-2 ((,class (:foreground ,local-yellow-0))))
       `(org-level-3 ((,class (:foreground ,local-green-1))))
       `(org-level-4 ((,class (:foreground ,local-orange-0))))
       `(org-level-5 ((,class (:foreground ,local-red-2))))
       `(org-level-6 ((,class (:foreground ,local-red-0))))
       `(org-level-7 ((,class (:foreground ,local-blue-0))))
       `(org-level-8 ((,class (:foreground ,local-pink-0))))
       `(org-link ((,class (:foreground ,local-blue-0))))
       `(org-meta-line ((,class (:foreground ,local-grey-0))))
       `(org-special-keyword ((,class (:foreground ,local-purple-0))))
       `(org-todo ((,class (:foreground ,local-red-3))))
       `(region ((,class (:foreground ,local-bg :background ,local-region))))
       `(trailing-whitespace ((,class (:background ,local-red-1))))
       `(vertical-border ((,class (:foreground ,local-blue-0 :foreground ,local-blue-0))))
       `(warning ((,class (:foreground ,local-orange-0))))
       `(whitespace-trailing ((,class (:background ,local-red-1))))))

;;;###autoload
(when load-file-name
  (add-to-list 'custom-theme-load-path
               (file-name-as-directory (file-name-directory load-file-name))))

(provide-theme 'local)

;; Local Variables:
;; no-byte-compile: t
;; End:
;;; local-theme.el ends here

And that's that

Emacs 30.0.50 (Org mode 9.6)