#+BEGIN_SRC emacs-lisp :tangle yes :results silent
(winner-mode 1)
+ (defun sd/toggle-max-windows ()
+ "Set maximize current if there are multiple windows, if only
+ one window, window undo"
+ (interactive)
+ (if (equal (length (window-list)) 1)
+ (winner-undo)
+ (delete-other-windows)))
+
(defhydra sd/hydra-window (:color red :columns nil)
"window"
("h" windmove-left nil :exit t)
(split-window-below)
(windmove-down))
"horz" :exit t)
- ("o" delete-other-windows "one" :exit t)
+ ;; ("o" delete-other-windows "one" :exit t)
+ ("o" sd/toggle-max-windows "one" :exit t)
("C-o" ido-switch-buffer "buf" :exit t)
("C-k" sd/delete-current-window "del" :exit t)
("'" other-window "other" :exit t)
=M-n=, =M-p=, history
**** tagss
** Edit
+*** basic editting
- cut, yank, =C-w=, =C-y=
- save, revert
- undo, redo - undo-tree
- select, expand-region
- spell check, flyspell
+
+*** Kill ring
+=helm-show-kill-ring=
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+ (global-set-key (kbd "M-y") #'helm-show-kill-ring)
+#+END_SRC
+
** Search & Replace / hightlight =M-s=
*** search
*** replace
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
(use-package bing-dict
:ensure t
- :commands (bing-dict-brief)
- :config
- (global-set-key (kbd "s-d") 'bing-dict-brief))
+ :init
+ (global-set-key (kbd "s-d") 'bing-dict-brief)
+ :commands (bing-dict-brief))
#+END_SRC
* TODO Temp directory for cached/history/temp files