X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=60afe0b2acf5a5778d35a882262491e748393b67;hb=1c282fe29001f942bd32ff822b8d2dbe1db717f2;hp=059eb3da8b32e244d0a7dc245fd5d72d4a1293b9;hpb=d3a8fcf1ee6722729ac1b35b0d499927db97cab3;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index 059eb3d..60afe0b 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -667,7 +667,7 @@ Use [[https://github.com/DarwinAwardWinner/ido-ubiquitous][ido-ubiquitous]] for :ensure t :defer t :init - ;; (global-set-key (kbd "M-x") 'counsel-M-x) + (global-set-key (kbd "M-x") 'counsel-M-x) (global-set-key (kbd "C-h f") 'counsel-describe-function) (global-set-key (kbd "C-h v") 'counsel-describe-variable) ;; (set-face-attribute 'ivy-current-match nil :background "Orange" :foreground "black") @@ -3016,6 +3016,7 @@ Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del ;; ("C-i" other-window nil :exit t) ("C-b" ido-switch-buffer nil :exit t) ("C-f" projectile-find-file nil :exit t) + ("C-r" ivy-recentf nil :exit t) ("C-p" persp-switch :exit t) ("C-t" projectile-persp-switch-project nil :exit t) @@ -3489,7 +3490,20 @@ Refer [[https://github.com/fnwiya/dotfiles/blob/c9ca79f1b22c919d9f4c3a0f944ba828 ** perspeen #+BEGIN_SRC emacs-lisp :tangle yes :results silent (el-get-bundle seudut/perspeen - :features perspeen) + :features perspeen + ;; (perspeen-mode) + ) + ;; super-i to switch to ith workspace + + (defmacro sd/define-keys (map key func &rest args) + "A macro to define multi keys " + `(define-key ,map ,key (lambda () (interactive) (,func ,@args)))) + + + (with-eval-after-load "perspeen" + (dotimes (ii 9) + (sd/define-keys perspeen-mode-map (kbd (concat "s-" (number-to-string (+ ii 1)))) + perspeen-goto-ws (+ ii 1)))) #+END_SRC * TODO todolist ** Rucket