working again
This commit is contained in:
parent
7ea2eb8f05
commit
bd71f8d95a
5 changed files with 39 additions and 62 deletions
14
lisp/init-god.el
Normal file
14
lisp/init-god.el
Normal file
|
@ -0,0 +1,14 @@
|
|||
;;; init-god.el --- make emacs usable -*- lexical-binding: t -*-
|
||||
;;; Commentary:
|
||||
;;; Code:
|
||||
|
||||
(require-package 'god-mode)
|
||||
(god-mode)
|
||||
(global-set-key (kbd "<escape>") #'god-local-mode)
|
||||
|
||||
(defun my-god-mode-update-cursor-type ()
|
||||
(setq cursor-type (if (or god-local-mode buffer-read-only) 'box 'bar)))
|
||||
|
||||
(add-hook 'post-command-hook #'my-god-mode-update-cursor-type)
|
||||
|
||||
(define-key god-local-mode-map (kbd ".") #'repeat)
|
Loading…
Add table
Add a link
Reference in a new issue