X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=0520fa7341224cd8923158becb606e0a680ac642;hb=1ffc8a8c9140267430951925844887f51e4e55cb;hp=79271430f176f9b93cb55fb78b326dd7934959e4;hpb=be51d322886cb2c8e0948c54452ced636c8f6988;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index 7927143..0520fa7 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -350,6 +350,8 @@ clean mode line, Refer to [[https://www.masteringemacs.org/article/hiding-replac (auto-revert-mode . "") ;; default is Ind (org-indent-mode . "") + ;; default is Fly + (flyspell-mode . "") ;; Major modes (lisp-interaction-mode . "λ") (hi-lock-mode . "") @@ -619,6 +621,15 @@ Make flyspell enabled for org-mode, see [[http://emacs.stackexchange.com/questio (if (and b e (< (point) e)) (setq rlt nil))) (setq ad-return-value rlt))) #+END_SRC + +*** Expand-region +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + (use-package expand-region + :ensure t + :config + (global-set-key (kbd "C-=") 'er/expand-region)) +#+END_SRC + ** Motion *** Avy #+BEGIN_SRC emacs-lisp :tangle yes :results silent @@ -1293,7 +1304,8 @@ and Defined keys, using vi keybindings, Refer abo-abo's setting [[https://github magit-staged-section-map)) (define-key map "j" 'magit-section-forward) (define-key map "k" 'magit-section-backward) - (define-key map "D" 'magit-discard-file) + (define-key map "D" 'magit-discard) + (define-key map "O" 'magit-discard-file) (define-key map "n" nil) (define-key map "p" nil) (define-key map "v" 'recenter-top-bottom) @@ -1725,7 +1737,7 @@ Play Go in Emacs, gnugo xpm refert [[https://github.com/okanotor/dotemacs/blob/f ** TODO bookmark ** TODO Calendar -** TODO advice info +** advice info #+BEGIN_SRC emacs-lisp :tangle yes :results silent (defun sd/info-mode () (interactive) @@ -1733,12 +1745,19 @@ Play Go in Emacs, gnugo xpm refert [[https://github.com/okanotor/dotemacs/blob/f (unless (> (length (window-list)) 1) (split-window-right)) (other-window 1) - (info))) + ;; (info) + )) + + ;; (global-set-key (kbd "C-h i") 'sd/info-mode) - (global-set-key (kbd "C-h i") 'sd/info-mode) - ;; (add-hook 'Info-mode-hook (lambda () - ;; (define-key Info-mode-map "q" ))) + ;; open Info buffer in other window instead of current window + (defadvice info (before my-info (&optional file buf) activate) + (sd/info-mode)) + + (defadvice Info-exit (after my-info-exit activate) + (sd/delete-current-window)) #+END_SRC + * Programming ** Languages