From c3d3a4efa460266897e54c797aed6a642a32efa7 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 1 Jun 2017 18:01:05 +0200 Subject: emacs: added the bool-flip package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- emacs/custom.el | 2 +- emacs/init.html | 22 +++++++++++++++++----- emacs/init.org | 12 ++++++++++-- 3 files changed, 28 insertions(+), 8 deletions(-) diff --git a/emacs/custom.el b/emacs/custom.el index 40b91fc..acc4390 100644 --- a/emacs/custom.el +++ b/emacs/custom.el @@ -15,7 +15,7 @@ '(markdown-command "/usr/bin/markdown-calibre") '(package-selected-packages (quote - (salt-mode flycheck-rust rust-playground rust-mode vue-mode coffee-mode json-reformat erc-hl-nicks emoji-cheat-sheet-plus helm-circe htmlize cmake-mode websocket markdown-mode go-mode magit evil-leader evil helm projectile writeroom-mode org-eldoc evil-commentary yasnippet yaml-mode which-key web-mode wc-mode use-package terraform-mode smart-tabs-mode slim-mode scss-mode rainbow-delimiters php-mode org-evil olivetti mu4e-alert mmm-jinja2 markdown-preview-mode helm-projectile helm-ag go-eldoc go-add-tags flycheck expand-region evil-surround evil-org evil-numbers evil-mu4e evil-magit evil-args dockerfile-mode disable-mouse default-text-scale crux cmake-font-lock ag)))) + (bool-flip salt-mode flycheck-rust rust-playground rust-mode vue-mode coffee-mode json-reformat erc-hl-nicks emoji-cheat-sheet-plus helm-circe htmlize cmake-mode websocket markdown-mode go-mode magit evil-leader evil helm projectile writeroom-mode org-eldoc evil-commentary yasnippet yaml-mode which-key web-mode wc-mode use-package terraform-mode smart-tabs-mode slim-mode scss-mode rainbow-delimiters php-mode org-evil olivetti mu4e-alert mmm-jinja2 markdown-preview-mode helm-projectile helm-ag go-eldoc go-add-tags flycheck expand-region evil-surround evil-org evil-numbers evil-mu4e evil-magit evil-args dockerfile-mode disable-mouse default-text-scale crux cmake-font-lock ag)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/emacs/init.html b/emacs/init.html index c0b52b3..45e7a09 100644 --- a/emacs/init.html +++ b/emacs/init.html @@ -4,7 +4,7 @@ mssola's GNU Emacs configuration - + @@ -1179,6 +1179,19 @@ remember some of these snippets, I've mapped , h to (evil-leader/set-key "h" 'yas-describe-tables))) + +

+bool-flip is a very simple utility that toggles truthy/falsey values. +

+ +
+ +
(use-package bool-flip
+  :ensure t
+  :config
+  (global-set-key (kbd "C-c b") 'bool-flip-do-flip))
+
+
@@ -1499,13 +1512,12 @@ the rest.

-Set a key binding for magit-blame and magit-log-buffer-file. +Set a key binding for magit-log-buffer-file.

-
(global-set-key (kbd "C-c b") 'magit-blame)
-(global-set-key (kbd "C-c l") 'magit-log-buffer-file)
+
(global-set-key (kbd "C-c l") 'magit-log-buffer-file)
 
@@ -2918,7 +2930,7 @@ along with this program. If not, see < diff --git a/emacs/init.org b/emacs/init.org index 413b258..1c7c62d 100644 --- a/emacs/init.org +++ b/emacs/init.org @@ -732,6 +732,15 @@ remember some of these snippets, I've mapped @@html:, h@@ to (evil-leader/set-key "h" 'yas-describe-tables))) #+END_SRC +=bool-flip= is a very simple utility that toggles truthy/falsey values. + +#+BEGIN_SRC elisp +(use-package bool-flip + :ensure t + :config + (global-set-key (kbd "C-c b") 'bool-flip-do-flip)) +#+END_SRC + * Dired I use dired mode mainly for attaching document into emails. That being said, @@ -987,10 +996,9 @@ the rest. 'show))) #+END_SRC -Set a key binding for =magit-blame= and =magit-log-buffer-file=. +Set a key binding for =magit-log-buffer-file=. #+BEGIN_SRC elisp - (global-set-key (kbd "C-c b") 'magit-blame) (global-set-key (kbd "C-c l") 'magit-log-buffer-file) #+END_SRC -- cgit v1.2.3