Last active
February 26, 2020 06:58
-
-
Save gonewest818/a02fd215d9790acd837c873775e7329a to your computer and use it in GitHub Desktop.
try to repro dimmer issue #33 (https://github.com/gonewest818/dimmer.el/issues/33)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; override user-emacs-directory to not access $HOME/.emacs.d | |
(setq user-init-file (or load-file-name (buffer-file-name))) | |
(setq user-emacs-directory (file-name-directory user-init-file)) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Configure melpa | |
(require 'package) | |
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) | |
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t) | |
(setq package-enable-at-startup nil) | |
(package-initialize) | |
(when (not package-archive-contents) | |
(package-refresh-contents)) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Bootstrap `use-package' | |
(setq package-pinned-packages | |
'((bind-key . "melpa") | |
(diminish . "melpa") | |
(use-package . "melpa") | |
(org-plus-contrib . "org"))) | |
(dolist (p (mapcar 'car package-pinned-packages)) | |
(unless (package-installed-p p) | |
(package-install p))) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; install org and dimmer | |
(use-package org | |
:ensure t | |
:bind (("C-c a" . org-agenda)) | |
:config | |
(setq org-agenda-files '("example.org"))) | |
(use-package dimmer | |
:ensure t | |
:config | |
(setq dimmer-fraction 0.4) | |
(dimmer-mode)) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; customize settings below this line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
put init.el and example.org in a folder:
and run emacs with these flags