From c5edb38141dedbc61aa95a226e87d00e3745ba7c Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Sat, 14 Jul 2018 23:36:42 -0400 Subject: [PATCH] remove :bind --- conf.el | 39 ++++++++++++++++++++------------------- conf.org | 39 ++++++++++++++++++++------------------- 2 files changed, 40 insertions(+), 38 deletions(-) diff --git a/conf.el b/conf.el index 0de4400..246838a 100644 --- a/conf.el +++ b/conf.el @@ -84,11 +84,6 @@ (use-package helm :ensure t :delight - :bind - ("C-x C-f" . 'helm-find-files) - ("C-x C-b" . 'helm-buffers-list) - ("M-x" . 'helm-M-x) - ("C-c h" . 'helm-command-prefix) :init (helm-mode 1) :config @@ -99,15 +94,15 @@ helm-recentf-fuzzy-match t helm-semantic-fuzzy-match t helm-imenu-fuzzy-match t - helm-scroll-amount 8)) + helm-scroll-amount 8) ;; I liked the way ido-veritcal worked ;; less invasive... - ;; (add-to-list 'display-buffer-alist - ;; `(,(rx bos "*helm" (* not-newline) "*" eos) - ;; (display-buffer-in-side-window) - ;; (inhibit-same-window . t) - ;; (window-height . 0.4)))) + (add-to-list 'display-buffer-alist + `(,(rx bos "*helm" (* not-newline) "*" eos) + (display-buffer-in-side-window) + (inhibit-same-window . t) + (window-height . 0.4)))) (helm-autoresize-mode 1) (require 'helm-config) @@ -122,20 +117,17 @@ (use-package ace-window :ensure t - :bind ("M-o" . ace-window) :config (setq aw-background t) - (set-face-attribute 'aw-leading-char-face nil :foreground "#292b2e" - :background "#bc6ec5":height 1.0 :box nil)) + :custom-face + (aw-leading-char-face ((t (:foreground "#292b2e" :background "#bc6ec5":height 1.0 :box nil))))) (use-package avy :ensure t - :bind ("M-s" . avy-goto-char) :config (setq avy-background t)) (use-package sudo-edit - :ensure t - :bind ("C-c s" . sudo-edit)) + :ensure t) (use-package typit :init @@ -1304,8 +1296,17 @@ and reverts all todo keywords to TODO" (global-set-key (kbd "S-") 'display-line-numbers-mode) (global-set-key (kbd "C-") 'mu4e) -(global-set-key (kbd "M-b") 'nd/switch-to-previous-buffer) -(global-set-key (kbd "C-c r") 'nd/config-reload) (global-set-key (kbd "C-c e") 'nd/config-visit) +(global-set-key (kbd "C-c h") 'helm-command-prefix) +(global-set-key (kbd "C-c r") 'nd/config-reload) +(global-set-key (kbd "C-c s") 'sudo-edit) + (global-set-key (kbd "C-x 2") 'nd/split-and-follow-horizontally) (global-set-key (kbd "C-x 3") 'nd/split-and-follow-vertically) +(global-set-key (kbd "C-x C-f") 'helm-find-files) +(global-set-key (kbd "C-x C-b") 'helm-buffers-list) + +(global-set-key (kbd "M-b") 'nd/switch-to-previous-buffer) +(global-set-key (kbd "M-o") 'ace-window) +(global-set-key (kbd "M-s") 'avy-goto-char) +(global-set-key (kbd "M-x") 'helm-M-x) diff --git a/conf.org b/conf.org index 5d6211f..65fec3f 100644 --- a/conf.org +++ b/conf.org @@ -133,11 +133,6 @@ NOTE: this only works if we start term after gui, and term has light bg. not big (use-package helm :ensure t :delight - :bind - ("C-x C-f" . 'helm-find-files) - ("C-x C-b" . 'helm-buffers-list) - ("M-x" . 'helm-M-x) - ("C-c h" . 'helm-command-prefix) :init (helm-mode 1) :config @@ -148,15 +143,15 @@ NOTE: this only works if we start term after gui, and term has light bg. not big helm-recentf-fuzzy-match t helm-semantic-fuzzy-match t helm-imenu-fuzzy-match t - helm-scroll-amount 8)) + helm-scroll-amount 8) ;; I liked the way ido-veritcal worked ;; less invasive... - ;; (add-to-list 'display-buffer-alist - ;; `(,(rx bos "*helm" (* not-newline) "*" eos) - ;; (display-buffer-in-side-window) - ;; (inhibit-same-window . t) - ;; (window-height . 0.4)))) + (add-to-list 'display-buffer-alist + `(,(rx bos "*helm" (* not-newline) "*" eos) + (display-buffer-in-side-window) + (inhibit-same-window . t) + (window-height . 0.4)))) (helm-autoresize-mode 1) (require 'helm-config) @@ -175,24 +170,21 @@ NOTE: this only works if we start term after gui, and term has light bg. not big #+BEGIN_SRC emacs-lisp (use-package ace-window :ensure t - :bind ("M-o" . ace-window) :config (setq aw-background t) - (set-face-attribute 'aw-leading-char-face nil :foreground "#292b2e" - :background "#bc6ec5":height 1.0 :box nil)) + :custom-face + (aw-leading-char-face ((t (:foreground "#292b2e" :background "#bc6ec5":height 1.0 :box nil))))) #+END_SRC ** avy #+BEGIN_SRC emacs-lisp (use-package avy :ensure t - :bind ("M-s" . avy-goto-char) :config (setq avy-background t)) #+END_SRC ** sudo edit #+BEGIN_SRC emacs-lisp (use-package sudo-edit - :ensure t - :bind ("C-c s" . sudo-edit)) + :ensure t) #+END_SRC ** typit #+BEGIN_SRC emacs-lisp @@ -1605,9 +1597,18 @@ I like being evil. All package and custom bindings go here. (global-set-key (kbd "S-") 'display-line-numbers-mode) (global-set-key (kbd "C-") 'mu4e) -(global-set-key (kbd "M-b") 'nd/switch-to-previous-buffer) -(global-set-key (kbd "C-c r") 'nd/config-reload) (global-set-key (kbd "C-c e") 'nd/config-visit) +(global-set-key (kbd "C-c h") 'helm-command-prefix) +(global-set-key (kbd "C-c r") 'nd/config-reload) +(global-set-key (kbd "C-c s") 'sudo-edit) + (global-set-key (kbd "C-x 2") 'nd/split-and-follow-horizontally) (global-set-key (kbd "C-x 3") 'nd/split-and-follow-vertically) +(global-set-key (kbd "C-x C-f") 'helm-find-files) +(global-set-key (kbd "C-x C-b") 'helm-buffers-list) + +(global-set-key (kbd "M-b") 'nd/switch-to-previous-buffer) +(global-set-key (kbd "M-o") 'ace-window) +(global-set-key (kbd "M-s") 'avy-goto-char) +(global-set-key (kbd "M-x") 'helm-M-x) #+END_SRC