~chambln/dots

e222c754a296d8ce3073ed0f238cb7baba936a77 — Gregory Chamberlain 10 days ago 99b5020
Install elpa-use-package
2 files changed, 35 insertions(+), 22 deletions(-)

M emacs/.emacs.d/init.el
M pkgs
M emacs/.emacs.d/init.el => emacs/.emacs.d/init.el +34 -22
@@ 1,15 1,6 @@
(require 'package)
(package-initialize)
(require 'dired-x)

(defun greg/toggle-modus-themes ()
  (interactive)
  (let ((theme (if (eq (car custom-enabled-themes) 'modus-operandi)
                  'modus-vivendi
                'modus-operandi)))
    (mapc 'disable-theme custom-enabled-themes)
    (load-theme theme t)))
(global-set-key [f5] #'greg/toggle-modus-themes)

(scroll-bar-mode 0)
(tool-bar-mode 0)
(menu-bar-mode 0)


@@ 34,27 25,48 @@
(global-set-key "\C-xw" #'eww)
(global-set-key "\C-xre" #'eww-list-bookmarks)

(when (package-installed-p 'eww)
(use-package eww
  :config
  (setq browse-url-browser-function #'eww)
  (global-set-key (kbd "C-x w") #'eww))
  :bind ("C-x w" . eww))

(when (package-installed-p 'smtpmail)
(use-package smtpmail
  :config
  (setq send-mail-function #'smtpmail-send-it)
  (setq smtpmail-smtp-server "smtp.migadu.com")
  (setq smtpmail-smtp-service 587))

(when (package-installed-p 'gnus)
(use-package gnus
  :config
  (setq mail-user-agent 'gnus-user-agent)
  (setq read-mail-command #'gnus))

(icomplete-mode 1)
(setq icomplete-separator "  ")
(use-package icomplete
  :config
  (setq icomplete-separator " ")
  (icomplete-mode 1))

(when (package-installed-p 'modus-themes)
  (load-theme 'modus-operandi t))
(setq light-theme 'adwaita)
(use-package modus-operandi-theme
  :config
  (setq light-theme 'modus-operandi))
(setq dark-theme 'wombat)
(use-package modus-vivendi-theme
  :config
  (setq dark-theme 'modus-vivendi))
(defun greg/toggle-theme ()
  (interactive)
  (let ((theme ))
    (mapc 'disable-theme custom-enabled-themes)
    (load-theme (if (eq (car custom-enabled-themes) light-theme)
                    'dark-theme
                  light-theme)
                t)))
(global-set-key [f5] #'greg/toggle-themes)
(greg/toggle-theme)

(when (package-installed-p 'diff-hl)
  (global-diff-hl-mode))
(use-package diff-hl
  :config (global-diff-hl-mode))

(when (package-installed-p 'magit)
  (global-set-key "\C-xg" #'magit-status))
(use-package magit
  :bind ("C-x g" . magit-status))

M pkgs => pkgs +1 -0
@@ 46,6 46,7 @@ webext-ublock-origin-firefox

emacs
emacs-common-non-dfsg
elpa-use-package
elpa-modus-themes
elpa-diff-hl
elpa-magit