Skip to content

Commit

Permalink
Add installation instructions for MELPA
Browse files Browse the repository at this point in the history
  • Loading branch information
ianyepan committed Jun 1, 2020
1 parent b96a694 commit cdc052b
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,40 @@
</p>


### Invoking the theme:
### Installing the theme:


Download `tron-legacy-theme.el` and put it under `~/.emacs.d/themes/` (or `~/.config/emacs/themes/`), then add these lines to your `init.el`:
#### MELPA (recommended)

`tron-legacy-theme` is now on MELPA as a package (as of 1. June. 2020)! An example use-package declaration:

```emacs-lisp
(use-package tron-legacy-theme
:config
(load-theme 'tron-legacy t))
```

If you want to invoke some customization options (more info see below), you should set them "before" you load the theme, like so:

```emacs-lisp
(use-package tron-legacy-theme
:config
(setq tron-legacy-theme-vivid-cursor t)
(load-theme 'tron-legacy t))
```



#### Manual

Download `tron-legacy-theme.el` and put it under `~/.emacs.d/themes/` (or `~/.config/emacs/themes/`), then add these lines to your `init.el`:

```emacs-lisp
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
# or
; or
(add-to-list 'custom-theme-load-path "~/.config/emacs/themes/")
(load-theme `tron-legacy t)
(load-theme 'tron-legacy t)
```

### Customization options:
Expand Down

0 comments on commit cdc052b

Please sign in to comment.