X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=ec29befe8323e920441cd278b4152c79de1cc46c;hb=2c4f86f01c500329338667f64c7a4aabbcf767e3;hp=7e4a870993917b5cf848dfca0e76b47e03e375b8;hpb=c8c762c4cdd32c63947bee3dc2459061d4f7e0c0;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index 7e4a870..ec29bef 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -2259,6 +2259,14 @@ Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del #+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) @@ -2279,7 +2287,8 @@ Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del (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) @@ -2452,11 +2461,19 @@ Search, replace and hightlight will in later paragraph =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 @@ -2525,6 +2542,15 @@ stolen from [[https://github.com/mariolong/emacs.d/blob/f6a061594ef1b5d1f4750e9d (insert (format "%s" (with-ivy-window (thing-at-point 'symbol))))))) #+END_SRC +* Dictionary +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + (use-package bing-dict + :ensure t + :init + (global-set-key (kbd "s-d") 'bing-dict-brief) + :commands (bing-dict-brief)) +#+END_SRC + * TODO Temp directory for cached/history/temp files #+BEGIN_SRC emacs-lisp :tangle yes :results silent (use-package recentf