X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2Fconfiguration%2Fdon-configuration.org;h=ee2bf5e3ce33ee46830a92d7bac262d7b1d8f0da;hb=d967bbc9115a91987c640c65f9ca0f2cb326cf40;hp=fa87368ed5081af4d6eb35c96b14136a4bd7544d;hpb=a0862bd449c0e262daed11c1cda92cd156028a06;p=lib.git diff --git a/emacs_el/configuration/don-configuration.org b/emacs_el/configuration/don-configuration.org index fa87368..ee2bf5e 100644 --- a/emacs_el/configuration/don-configuration.org +++ b/emacs_el/configuration/don-configuration.org @@ -71,6 +71,22 @@ (add-hook 'minibuffer-exit-hook #'don/minibuffer-exit-hook) #+END_SRC * Modules +** Flyspell 🐝 +#+BEGIN_SRC emacs-lisp + (use-package flyspell + :ensure t + :diminish flyspell-mode 🐝 + :config + (add-hook 'message-mode-hook 'turn-on-flyspell) + (add-hook 'text-mode-hook 'turn-on-flyspell) + (add-hook 'c-mode-common-hook 'flyspell-prog-mode) + (add-hook 'cperl-mode-hook 'flyspell-prog-mode) + (add-hook 'tcl-mode-hook 'flyspell-prog-mode) + :init + (setq ispell-program-name "ispell") + ) + +#+END_SRC ** Winnermode #+BEGIN_SRC emacs-lisp (winner-mode 1) @@ -146,18 +162,18 @@ (setq split-width-threshold 100) (setq split-height-threshold 60) - (defun my/split-window-prefer-horizontally (window) + (defun my/split-window-prefer-vertically (window) "If there's only one window (excluding any possibly active minibuffer), then split the current window horizontally." (if (and (one-window-p t) (not (active-minibuffer-window)) - ( > (frame-width) (frame-height)) + ( < (frame-width) (frame-height)) ) - (let ((split-height-threshold nil)) + (let ((split-width-threshold nil)) (split-window-sensibly window)) (split-window-sensibly window))) - (setq split-window-preferred-function #'my/split-window-prefer-horizontally) + (setq split-window-preferred-function #'my/split-window-prefer-vertically) (setq window-combination-resize t) #+END_SRC @@ -285,6 +301,8 @@ value, scrolling continues until there is no more output. #+BEGIN_SRC emacs-lisp :tangle don-configuration.el (use-package magit :ensure t + :bind (("C-x g" . magit-status) + ("C-x C-g" . magit-status)) :config ;; don't verify where we are pushing (setq magit-push-always-verify nil) @@ -492,7 +510,6 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori #+BEGIN_SRC emacs-lisp (use-package rainbow-mode - :ensure f ;; add ess to the x major mode :config (add-to-list 'rainbow-x-colors-major-mode-list 'ESS[S]) (add-to-list 'rainbow-x-colors-major-mode-list 'ESS[R]) @@ -794,13 +811,6 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori (put 'downcase-region 'disabled nil) (put 'narrow-to-region 'disabled nil) - (setq ispell-program-name "ispell") - (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t) - (add-hook 'message-mode-hook 'turn-on-flyspell) - (add-hook 'text-mode-hook 'turn-on-flyspell) - (add-hook 'c-mode-common-hook 'flyspell-prog-mode) - (add-hook 'cperl-mode-hook 'flyspell-prog-mode) - (add-hook 'tcl-mode-hook 'flyspell-prog-mode) ; (defun turn-on-flyspell () ; "Force flyspell-mode on using a positive arg. For use in hooks." ; (interactive)