Skip to content

Instantly share code, notes, and snippets.

@gonewest818
Last active February 26, 2020 06:58
Show Gist options
  • Save gonewest818/a02fd215d9790acd837c873775e7329a to your computer and use it in GitHub Desktop.
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)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 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
@gonewest818
Copy link
Author

put init.el and example.org in a folder:

$ mkdir repro
$ cp init.el .
$ cp example.org .

and run emacs with these flags

$ emacs -q -l init.el

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment