邀请大家分享下帮助提高工作效率的快捷键


#1

在专注模式下工作, 只开一个窗口, 临时任务开两个窗口.

org文件之间的跳转, previous-buffer和next-buffer特别方便.

比如在A.org中, 外部连接到 B.org

* [[file:A.org::工作流][工作流]]

Screenshot%20from%202019-07-14%2012-12-43

单击后, 跳转到B.org

Screenshot%20from%202019-07-14%2012-13-38

可以通过previous-buffer即可返回原先的工作界面.

;; buffers
(global-set-key “\C-xp” 'previous-buffer)
(global-set-key “\C-xn” 'next-buffer)

原样搬来的bbatsov/prelud的快捷键

;;         1. Kernel.Text Processing
;;----------------------------------------------------------
;; Ivy auto completions
(ivy-mode 1)
(setq ivy-use-virtual-buffers t)
(setq enable-recursive-minibuffers t)
(global-set-key "\C-s" 'swiper-isearch)
(global-set-key (kbd "C-c C-r") 'ivy-resume)
(global-set-key (kbd "<f6>") 'ivy-resume)
(global-set-key (kbd "M-x") 'counsel-M-x)
(global-set-key (kbd "C-x C-f") 'counsel-find-file)
(global-set-key (kbd "<f1> f") 'counsel-describe-function)
(global-set-key (kbd "<f1> v") 'counsel-describe-variable)
(global-set-key (kbd "<f1> l") 'counsel-find-library)
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol)
(global-set-key (kbd "<f2> u") 'counsel-unicode-char)
(global-set-key (kbd "C-c g") 'counsel-git)
(global-set-key (kbd "C-c j") 'counsel-git-grep)
(global-set-key (kbd "C-c k") 'counsel-ag)
(global-set-key (kbd "C-x l") 'counsel-locate)
(global-set-key (kbd "C-S-o") 'counsel-rhythmbox)
(define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history)zh

#2

C-x n 绑了 narrow 放哪里…


#3

narrow wide display不常用到, 调用函数。 C-x C-n太繁琐了。


#4

我都是用winner,直接返回之前的layout。临时用ivy-push-view/ivy-pop-view也很方便。


#5
(global-set-key "\C-c\C-y" 'copy-line)
(global-set-key "\C-c\C-v" 'view-mode)
(global-set-key (kbd "M-1") 'helm-bookmarks)
(global-set-key (kbd "M-3") #'helm-find-files)
(global-set-key (kbd "M-2") #'helm-mini)
(global-set-key (kbd "M-0") 'delete-window)
(global-set-key (kbd "M-q") 'kill-current-buffer)
(global-set-key (kbd "<C-f5>") 'w32-open-current-file-in-explorer)
(global-set-key (kbd "<C-f6>") 'w32-open-shell-from-current-file-directory)
                                        ;(global-set-key (kbd "C-c s") 'set-mark-command)
(global-set-key (kbd "C-\\") 'indent-buffer)
(global-set-key (kbd "C-x o") 'switch-window)
(global-set-key (kbd "<f11>") 'calendar)
;;helm
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
(global-set-key (kbd "M-m") 'helm-semantic-or-imenu)
;; (global-set-key (kbd "C-x b")   #'helm-mini)
(global-set-key (kbd "C-x C-b") #'helm-buffers-list)
(global-set-key (kbd "M-x") #'helm-M-x)
(global-set-key (kbd "C-x C-f") #'helm-find-files)
(global-set-key (kbd "C-x C-r") #'helm-recentf)
(global-set-key (kbd "C-x r l")   #'helm-bookmarks)
(global-set-key (kbd "C-c s") 'helm-do-ag-project-root)
(global-set-key (kbd "C-c b") 'helm-ag-pop-stack)
(global-set-key (kbd "C-c f") 'helm-projectile-find-file-dwim)
(global-set-key (kbd "C-c w") 'helm-swoop)
(global-set-key (kbd "C-c <DEL>") 'c-hungry-delete-backwards)
(global-set-key (kbd "M-[") 'ace-jump-mode)

全用helm的模式,M-1到M-3平时用得最多