~hristoast/dot-emacs

86e9d74f53d6faf7b2918df3aac6e0b4b4c16337 — Hristos N. Triantafillou 7 months ago b2ee588
Use my material theme fork, better wording
2 files changed, 26 insertions(+), 10 deletions(-)

M README.md
M lib/ui.el
M README.md => README.md +3 -3
@@ 2,7 2,7 @@

## About

My Emacs configuration.  I use it on Emacs 27.1, but it should run fine on Emacs 24 or higher (with some warnings.)  It sports the [Material Theme for Emacs](https://github.com/cpaulik/emacs-material-theme) and [Smart Mode Line](https://github.com/Malabarba/smart-mode-line) with the Dark theme.  I recommend running this configuration in daemon mode - it's great for GUI Emacs or terminal Emacs.
My Emacs configuration.  I use it on Emacs 27.1, but it should run fine on Emacs 24 or higher (with some warnings.)  It sports [my fork](https://git.sr.ht/~hristoast/emacs-material-theme) of the [Material Theme for Emacs](https://github.com/cpaulik/emacs-material-theme) and [Smart Mode Line](https://github.com/Malabarba/smart-mode-line) with the Dark theme.  I recommend running this configuration in daemon mode - it's great for GUI Emacs or terminal Emacs.

It sets up Emacs with support for a wide variety of languages, as well as other more opinionated things like: color themes, many aspects of Emacs internals, code completion, and much much more.



@@ 36,6 36,6 @@ Large portions of the overall configuration are toggle-able.  See [the config pa

## Issues/Notes

* When installing, this configuration should not be ran in daemon mode for the first run.
* When installing, this configuration should not be ran in daemon mode for the first run (you will need to trust themes that are loaded).
* Some of my keybindings might not work well with terminal Emacs.  If that's an issue, don't load them (see [the config wiki page](https://man.sr.ht/%7Ehristoast/dot-emacs/config.md)).
* You can view the startup time in the `*Messages*` buffer, look for a line starting with `[STARTUP] Loading ...`.
* You can view the startup time in the `*Messages*` buffer, look for a line starting with `[STARTUP] Loading ...`, or in the dashboard (unless you disable that).

M lib/ui.el => lib/ui.el +23 -7
@@ 64,7 64,12 @@
                                   "Hristos is proud of you!"
                                   "Keep excited and hack on!"
                                   "Pssst, try: M-x fireplace"
                                   "Smile at a stranger today.")
                                   "Smile at a stranger today."
                                   "Read about available tweaks here: https://man.sr.ht/~hristoast/dot-emacs/config.md#tweaks"
                                   "Set these environment variables for a light theme: EMACS_MATERIAL_THEME=light EMACS_SML_THEME=light"
                                   "Set these environment variables for no extra themes: EMACS_NO_SMART_MODE_LINE=t EMACS_NO_STATUS_EMOJII=t EMACS_NO_THEME=t"
                                   "Set this environment variable for the dark blue material theme: EMACS_MATERIAL_THEME_BLUE=t"
                                   "Set this environment variable to change the default org file: EMACS_DEFAULT_ORG_FILE=/path/to/file.org")
       dashboard-items '((recents  . 10)
                         (bookmarks . 10)
                         (agenda . 10))


@@ 130,7 135,7 @@
        (setq
         sml/shorten-directory t
         sml/theme
         (gethash (or (getenv "EMACS_USE_SML_THEME") h/sml/default-theme)
         (gethash (or (getenv "EMACS_SML_THEME") h/sml/default-theme)
                  h/sml/themes nil))

        (if (getenv "EMACS_TRUST_SML_THEMES")


@@ 143,17 148,28 @@
(unless (getenv "EMACS_NO_THEME") ;; Don't load a theme.
  ;; Color Theme for emacs based on material design colors
  ;; https://github.com/cpaulik/emacs-material-theme
  ;; TODO: How to use darker grey vs blue colors?
  ;; Also, allow for using different themes;
  ;; from a list or perhaps an arbitrary one.
  ;; But use my fork that always selects grey colors over darkblue.
  (use-package material-theme
    :straight t
    :straight (material-theme
               :type git
               :host nil
               :repo "https://git.sr.ht/~hristoast/emacs-material-theme")
    :config
    (if (getenv "EMACS_TRUST_THEMES")
        (setq h/trust-themes t)
      (setq h/trust-themes nil))

    (load-theme 'material h/trust-themes)))
    (let ((h/material/themes #s(hash-table
                                size 8
                                test equal
                                data
                                ("dark" material
                                 "light" material-light)))
          (h/material/default "dark"))
      (setq-default h/material/theme (gethash (or (getenv "EMACS_MATERIAL_THEME") h/material/default)
                                              h/material/themes nil)))

    (load-theme h/material/theme h/trust-themes)))

(if (getenv "EMACS_LINUM")
    ;; http://is.gd/Mw5KiS