mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Compare commits
2 commits
ea4f14bb5e
...
42a896742c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42a896742c | ||
|
|
7b81c0a68c |
2 changed files with 14 additions and 4 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
(define-derived-mode self-chat-mode fundamental-mode "self-chat"
|
(define-derived-mode self-chat-mode fundamental-mode "self-chat"
|
||||||
"This is a mode where I become crazy and talk to myself."
|
"This is a mode where I become crazy and talk to myself."
|
||||||
(setq font-lock-defaults '(self-chat-highlights))
|
(setq font-lock-defaults '(self-chat-highlights nil t))
|
||||||
(olivetti-mode 1))
|
(olivetti-mode 1))
|
||||||
|
|
||||||
(defun self-chat-buffer ()
|
(defun self-chat-buffer ()
|
||||||
|
|
@ -148,10 +148,10 @@ shuffling is done in place."
|
||||||
"'s face for self-chat-mode"))
|
"'s face for self-chat-mode"))
|
||||||
(defvar ,face-sym ',face-sym)
|
(defvar ,face-sym ',face-sym)
|
||||||
(add-to-list 'self-chat-highlights
|
(add-to-list 'self-chat-highlights
|
||||||
'(,(rx symbol-start (literal name) symbol-end) 0 ,face-sym prepend)
|
'(,(rx symbol-start (literal name) symbol-end) . ,face-sym))
|
||||||
t)
|
|
||||||
(add-to-list 'self-chat-highlights
|
(add-to-list 'self-chat-highlights
|
||||||
'(,(format "^> %s:.*$" name) . ,face-sym)))
|
'(,(format "^> %s:.*$" name) 0 ,face-sym keep)
|
||||||
|
t))
|
||||||
(cl-incf num))))
|
(cl-incf num))))
|
||||||
list))))
|
list))))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,16 @@
|
||||||
(xterm-mouse-mode 1)
|
(xterm-mouse-mode 1)
|
||||||
(terminal-init-xterm)
|
(terminal-init-xterm)
|
||||||
|
|
||||||
|
(defun my/org--mks-read-key-use-read-key (orig &rest args)
|
||||||
|
(cl-letf (((symbol-function 'read-char-exclusive)
|
||||||
|
(lambda (&optional prompt inherit-input-method seconds)
|
||||||
|
(read-key prompt nil))))
|
||||||
|
(apply orig args)))
|
||||||
|
|
||||||
|
(advice-add #'org--mks-read-key
|
||||||
|
:around
|
||||||
|
#'my/org--mks-read-key-use-read-key)
|
||||||
|
|
||||||
;; (global-set-key (kbd "M-[ emacs-C-SPC") #'set-mark-command)
|
;; (global-set-key (kbd "M-[ emacs-C-SPC") #'set-mark-command)
|
||||||
;; (global-set-key (kbd "M-[ emacs-M-SPC") #'cycle-spacing)
|
;; (global-set-key (kbd "M-[ emacs-M-SPC") #'cycle-spacing)
|
||||||
;; (global-set-key (kbd "M-[ emacs-C-/") #'undo)
|
;; (global-set-key (kbd "M-[ emacs-C-/") #'undo)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue