summaryrefslogtreecommitdiffstats
path: root/lisp/ravi-init-appearance.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ravi-init-appearance.el')
-rw-r--r--lisp/ravi-init-appearance.el71
1 files changed, 22 insertions, 49 deletions
diff --git a/lisp/ravi-init-appearance.el b/lisp/ravi-init-appearance.el
index 174b852..23e58c6 100644
--- a/lisp/ravi-init-appearance.el
+++ b/lisp/ravi-init-appearance.el
@@ -81,8 +81,7 @@
:config
(progn
(ws-butler-global-mode 1))
- :diminish ws-butler-mode
- :ensure t)
+ :diminish ws-butler-mode)
(diminish 'abbrev-mode)
@@ -110,18 +109,15 @@ Delete all whitespace on a successive key press."
(hungry-delete-backward n killflag))))
;;(define-key global-map [remap backward-delete-char-untabify] 'jschaf/hungry-delete-backward)
(define-key global-map [remap backward-delete-char-untabify] 'hungry-delete-backward)
- )
- :ensure t)
+ ))
;; Easier compaction of whitespace
(use-package shrink-whitespace
- :bind (("M-SPC" . shrink-whitespace))
- :ensure t)
+ :bind (("M-SPC" . shrink-whitespace)))
(setq sentence-end-double-space nil)
(use-package unfill
- :bind (("M-q" . toggle-fill-unfill))
- :ensure t)
+ :bind (("M-q" . toggle-fill-unfill)))
(use-package subword
:config
@@ -138,16 +134,13 @@ Delete all whitespace on a successive key press."
(defun ravi/turn-on-syntax-subword-mode ()
(interactive)
(syntax-subword-mode 1))
- (add-hook 'prog-mode-hook 'ravi/turn-on-syntax-subword-mode))
- :ensure t)
+ (add-hook 'prog-mode-hook 'ravi/turn-on-syntax-subword-mode)))
(use-package rectangle-utils
- :bind (("C-x R" . rectangle-menu))
- :ensure t)
+ :bind (("C-x R" . rectangle-menu)))
;; Keep cursor away from edges when scrolling up/down
-(use-package smooth-scrolling
- :ensure t)
+(use-package smooth-scrolling)
;; Enable automatic indentation, if possible
(use-package smart-newline
@@ -155,8 +148,7 @@ Delete all whitespace on a successive key press."
:init
(progn
(bind-key "<return>" 'smart-newline prog-mode-map)
- (bind-key "<return>" 'smart-newline emacs-lisp-mode-map))
- :ensure t)
+ (bind-key "<return>" 'smart-newline emacs-lisp-mode-map)))
;; Case toggling: from Oleg Krehel http://oremacs.com/2014/12/25/ode-to-toggle/
(defun oremacs/char-upcasep (letter)
@@ -211,14 +203,12 @@ Delete all whitespace on a successive key press."
(use-package fix-word
:bind (("M-u" . fix-word-upcase)
("M-l" . fix-word-downcase)
- ("M-c" . fix-word-capitalize))
- :ensure t)
+ ("M-c" . fix-word-capitalize)))
;; Zap up to char is more useful than zap-char
(use-package zop-to-char
:bind (("M-z" . zop-up-to-char)
- ("M-Z" . zop-to-char))
- :ensure t)
+ ("M-Z" . zop-to-char)))
;; Automatic indentation of yanked text
(dolist (command '(yank yank-pop))
@@ -242,8 +232,7 @@ Delete all whitespace on a successive key press."
(delete-region (point) (point-max))))
(use-package comment-dwim-2
- :bind (("M-;" . comment-dwim-2))
- :ensure t)
+ :bind (("M-;" . comment-dwim-2)))
;; To do: change to different keybinding
(use-package string-inflection
@@ -254,8 +243,7 @@ Delete all whitespace on a successive key press."
("c" string-inflection-all-cycle "all")
("r" string-inflection-ruby-style-cycle "ruby")
("j" string-inflection-java-style-cycle "java")
- ("<return>" nil)))
- :ensure t)
+ ("<return>" nil))))
;; Keep my navigation simple
(setq line-move-visual nil)
@@ -269,10 +257,7 @@ Delete all whitespace on a successive key press."
(global-undo-tree-mode)
(setq undo-tree-auto-save-history t)
(setq undo-tree-history-directory-alist
- `(("." . ,(expand-file-name "undotree/" (ravi/emacs-file "past")))))
- )
- :ensure t
- )
+ `(("." . ,(expand-file-name "undotree/" (ravi/emacs-file "past")))))))
;; Discover emacs
;; Since discover.el replaces keymaps wholesale for "C-x r" and "M-s", it overrides
@@ -282,9 +267,7 @@ Delete all whitespace on a successive key press."
(progn
(add-hook 'dired-mode-hook 'discover-turn-on-in-dired)
)
- :disabled t ;; unstable API and hosing user-provided keybindings
- :ensure t
- )
+ :disabled t) ;; unstable API and hosing user-provided keybindings
;; Help for prefix key-bindings not in discover-mode
(use-package guide-key
@@ -313,21 +296,16 @@ Delete all whitespace on a successive key press."
:config
(progn
(setq guide-key-tip/enabled t))
- :ensure t
- :disabled t ;; popups don't always go away; need to file a bug report
- )
+ :disabled t) ;; popups don't always go away; need to file a bug report
)
:diminish guide-key-mode
- :disabled t
- :ensure t
- )
+ :disabled t)
(use-package which-key
:config
(progn
(which-key-mode))
- :diminish which-key-mode
- :ensure t)
+ :diminish which-key-mode)
(bind-key "C-h a" 'apropos)
@@ -357,12 +335,10 @@ Delete all whitespace on a successive key press."
(progn
(temp-buffer-browse-mode 1))
:diminish temp-buffer-browse-mode
- :disabled t ; emacs historical issues make this unworkable
- :ensure t)
+ :disabled t) ; emacs historical issues make this unworkable
(use-package import-popwin
- :bind (("M-I" . import-popwin))
- :ensure t)
+ :bind (("M-I" . import-popwin)))
(use-package ace-window
:bind (("M-o" . ace-window)
@@ -421,8 +397,7 @@ Delete all whitespace on a successive key press."
("p" joe-scroll-other-window-down "scroll down"))
(add-to-list 'aw-dispatch-alist '(?w hydra-window-size/body) t)
(add-to-list 'aw-dispatch-alist '(?o hydra-window-scroll/body) t)
- (add-to-list 'aw-dispatch-alist '(?\; hydra-window-frame/body) t)))
- :ensure t)
+ (add-to-list 'aw-dispatch-alist '(?\; hydra-window-frame/body) t))))
(defun ravi/split-window-vertically-and-switch (prefix)
(interactive "P")
@@ -452,15 +427,13 @@ Delete all whitespace on a successive key press."
(require 'spaceline-config)
(spaceline-spacemacs-theme)
(when ravi/use-helm-instead-of-ido
- (spaceline-helm-mode)))
- :ensure t)
+ (spaceline-helm-mode))))
(use-package helpful
:bind (("C-h f" . helpful-callable)
("C-h v" . helpful-variable)
("C-h k" . helpful-key)
- ("C-h C-." . helpful-at-point))
- :ensure t)
+ ("C-h C-." . helpful-at-point)))
(provide 'ravi-init-appearance)
;;; ravi-init-appearance.el ends here