Bufferlo, and re-add God mode
This commit is contained in:
@@ -1072,6 +1072,7 @@ This configuration affects general text editing, across all modes. First, some p
|
|||||||
avy
|
avy
|
||||||
edit-indirect
|
edit-indirect
|
||||||
embark
|
embark
|
||||||
|
god-mode
|
||||||
# evil
|
# evil
|
||||||
# evil-collection
|
# evil-collection
|
||||||
# evil-org
|
# evil-org
|
||||||
@@ -1105,6 +1106,21 @@ its own devil-mode-only repeat maps that don't interfere when using normal modif
|
|||||||
;; (evil-org-set-key-theme '(navigation insert textobjects additional calendar))
|
;; (evil-org-set-key-theme '(navigation insert textobjects additional calendar))
|
||||||
;; (require 'evil-org-agenda)
|
;; (require 'evil-org-agenda)
|
||||||
;; (evil-org-agenda-set-keys)
|
;; (evil-org-agenda-set-keys)
|
||||||
|
(require 'god-mode)
|
||||||
|
(require 'which-key)
|
||||||
|
|
||||||
|
(bind-keys :map god-local-mode-map
|
||||||
|
("i" . (lambda () (interactive) (god-mode-all -1)))
|
||||||
|
("z" . repeat))
|
||||||
|
(bind-keys ("<escape>" . (lambda () (interactive) (god-mode-all 1))))
|
||||||
|
(defun my-god-mode-update-cursor-type ()
|
||||||
|
(setq cursor-type (cond
|
||||||
|
(org-present-mode nil)
|
||||||
|
((or (and (featurep 'god-mode) god-local-mode) buffer-read-only) 'box)
|
||||||
|
(t 'bar))))
|
||||||
|
|
||||||
|
(add-hook 'post-command-hook 'my-god-mode-update-cursor-type)
|
||||||
|
(which-key-enable-god-mode-support)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Avy allows jumping to any place on the screen with just a few keystrokes. I've stolen most of these
|
Avy allows jumping to any place on the screen with just a few keystrokes. I've stolen most of these
|
||||||
@@ -1162,6 +1178,34 @@ Just "silently" wrap when searching at the bottom of a document.
|
|||||||
(bind-keys ("C-x 4 n" . edit-indirect-region))
|
(bind-keys ("C-x 4 n" . edit-indirect-region))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
** Workflow
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args:elisp: :tangle target/desktop/emacs-workflow.el
|
||||||
|
:END:
|
||||||
|
|
||||||
|
#+BEGIN_SRC nix :tangle target/desktop/emacs-workflow.nix
|
||||||
|
{
|
||||||
|
programs.emacs = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = epkgs: with epkgs; [
|
||||||
|
bufferlo
|
||||||
|
];
|
||||||
|
extraConfig = builtins.readFile ./emacs-workflow.el;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
#+BEGIN_SRC elisp
|
||||||
|
(bufferlo-mode)
|
||||||
|
|
||||||
|
(with-eval-after-load 'bufferlo
|
||||||
|
(setq mode-line-misc-info
|
||||||
|
(assq-delete-all 'bufferlo-mode mode-line-misc-info)))
|
||||||
|
|
||||||
|
(bind-keys
|
||||||
|
("s-b" . bufferlo-switch-to-buffer))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Language Support
|
** Language Support
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args:elisp: :tangle target/desktop/emacs-languages.el
|
:header-args:elisp: :tangle target/desktop/emacs-languages.el
|
||||||
@@ -1360,7 +1404,7 @@ for completion. That makes it really annoying to use; don't use yasnippet with e
|
|||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(setopt inferior-lisp-program "sbcl")
|
(setopt inferior-lisp-program "sbcl")
|
||||||
|
|
||||||
;; (setopt lispy-compat '(god-mode edebug))
|
(setopt lispy-compat '(god-mode edebug))
|
||||||
(add-hook 'emacs-lisp-mode-hook (lambda () (lispy-mode 1)))
|
(add-hook 'emacs-lisp-mode-hook (lambda () (lispy-mode 1)))
|
||||||
(add-hook 'lisp-mode-hook (lambda () (lispy-mode 1)))
|
(add-hook 'lisp-mode-hook (lambda () (lispy-mode 1)))
|
||||||
;; (with-eval-after-load 'lispy
|
;; (with-eval-after-load 'lispy
|
||||||
@@ -1540,7 +1584,6 @@ for completion. That makes it really annoying to use; don't use yasnippet with e
|
|||||||
|
|
||||||
;; ("C-x M-:" . consult-complex-command)
|
;; ("C-x M-:" . consult-complex-command)
|
||||||
("C-x b" . consult-buffer)
|
("C-x b" . consult-buffer)
|
||||||
("s-b" . consult-project-buffer)
|
|
||||||
("s-B" . consult-buffer)
|
("s-B" . consult-buffer)
|
||||||
("C-x 4 b" . consult-buffer-other-window)
|
("C-x 4 b" . consult-buffer-other-window)
|
||||||
("C-x 5 b" . consult-buffer-other-frame)
|
("C-x 5 b" . consult-buffer-other-frame)
|
||||||
|
|||||||
Reference in New Issue
Block a user