-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
251 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ | |
[submodule "apheleia"] | ||
path = extensions/apheleia | ||
url = [email protected]:raxod502/apheleia.git | ||
[submodule "emacs-application-framework"] | ||
path = extensions/emacs-application-framework | ||
url = [email protected]:manateelazycat/emacs-application-framework.git |
Submodule emacs-application-framework
added at
81db16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
(push (expand-file-name "emacs-application-framework" jester-submodules-dir) load-path) | ||
(use-package eaf | ||
:init | ||
(use-package ctable :defer t) | ||
(use-package deferred :defer t) | ||
(use-package epc :defer t) | ||
:ensure nil | ||
:demand t | ||
:custom | ||
(eaf-browser-continue-where-left-off t) | ||
:config | ||
(setq eaf-browser-dark-mode "false") | ||
;; (setq eaf-browser-enable-adblocker "true") | ||
(eaf-bind-key scroll_up "C-n" eaf-pdf-viewer-keybinding) | ||
(eaf-bind-key scroll_down "C-p" eaf-pdf-viewer-keybinding) | ||
(eaf-bind-key take_photo "p" eaf-camera-keybinding) | ||
(eaf-bind-key nil "M-q" eaf-browser-keybinding) | ||
|
||
(require 'eaf-evil) | ||
|
||
(define-key key-translation-map (kbd "SPC") | ||
(lambda (prompt) | ||
(if (derived-mode-p 'eaf-mode) | ||
(pcase eaf--buffer-app-name | ||
("browser" (if (string= (eaf-call-sync "call_function" eaf--buffer-id "is_focus") "True") | ||
(kbd "SPC") | ||
(kbd eaf-evil-leader-key))) | ||
("pdf-viewer" (kbd eaf-evil-leader-key)) | ||
("image-viewer" (kbd eaf-evil-leader-key)) | ||
(_ (kbd "SPC"))) | ||
(kbd "SPC"))))) | ||
|
||
(provide 'init-eaf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
(defun meow-setup () | ||
(setq meow-cheatsheet-layout meow-cheatsheet-layout-qwerty) | ||
(meow-motion-overwrite-define-key | ||
'("j" . meow-next) | ||
'("k" . meow-prev)) | ||
(meow-leader-define-key | ||
;; SPC j/k will run the original command in MOTION state. | ||
'("j" . meow-motion-origin-command) | ||
'("k" . meow-motion-origin-command) | ||
;; Use SPC (0-9) for digit arguments. | ||
'("1" . meow-digit-argument) | ||
'("2" . meow-digit-argument) | ||
'("3" . meow-digit-argument) | ||
'("4" . meow-digit-argument) | ||
'("5" . meow-digit-argument) | ||
'("6" . meow-digit-argument) | ||
'("7" . meow-digit-argument) | ||
'("8" . meow-digit-argument) | ||
'("9" . meow-digit-argument) | ||
'("0" . meow-digit-argument) | ||
'("/" . meow-keypad-describe-key) | ||
'("?" . meow-cheatsheet)) | ||
(meow-normal-define-key | ||
'("0" . meow-expand-0) | ||
'("9" . meow-expand-9) | ||
'("8" . meow-expand-8) | ||
'("7" . meow-expand-7) | ||
'("6" . meow-expand-6) | ||
'("5" . meow-expand-5) | ||
'("4" . meow-expand-4) | ||
'("3" . meow-expand-3) | ||
'("2" . meow-expand-2) | ||
'("1" . meow-expand-1) | ||
'("-" . negative-argument) | ||
'(";" . meow-reverse) | ||
'("," . meow-inner-of-thing) | ||
'("." . meow-bounds-of-thing) | ||
'("[" . meow-beginning-of-thing) | ||
'("]" . meow-end-of-thing) | ||
'("a" . meow-append) | ||
'("A" . meow-open-below) | ||
'("b" . meow-back-word) | ||
'("B" . meow-back-symbol) | ||
'("c" . meow-change) | ||
'("C" . meow-change-save) | ||
'("d" . meow-C-d) | ||
'("D" . meow-backward-delete) | ||
'("e" . meow-next-word) | ||
'("E" . meow-next-symbol) | ||
'("f" . meow-find) | ||
'("F" . meow-find-expand) | ||
'("g" . meow-cancel) | ||
'("G" . meow-grab) | ||
'("h" . meow-left) | ||
'("H" . meow-left-expand) | ||
'("i" . meow-insert) | ||
'("I" . meow-open-above) | ||
'("j" . meow-next) | ||
'("J" . meow-next-expand) | ||
'("k" . meow-prev) | ||
'("K" . meow-prev-expand) | ||
'("l" . meow-right) | ||
'("L" . meow-right-expand) | ||
'("m" . meow-join) | ||
'("n" . meow-search) | ||
'("N" . meow-pop-search) | ||
'("o" . meow-block) | ||
'("O" . meow-block-expand) | ||
'("p" . meow-yank) | ||
'("P" . meow-yank-pop) | ||
'("q" . meow-quit) | ||
'("Q" . meow-goto-line) | ||
'("r" . meow-replace) | ||
'("R" . meow-swap-grab) | ||
'("s" . meow-kill) | ||
'("t" . meow-till) | ||
'("T" . meow-till-expand) | ||
'("u" . meow-undo) | ||
'("U" . meow-undo-in-selection) | ||
'("v" . meow-visit) | ||
'("V" . meow-kmacro-matches) | ||
'("w" . meow-mark-word) | ||
'("W" . meow-mark-symbol) | ||
'("x" . meow-line) | ||
'("X" . meow-kmacro-lines) | ||
'("y" . meow-save) | ||
'("Y" . meow-sync-grab) | ||
'("z" . meow-pop-selection) | ||
'("Z" . meow-pop-all-selection) | ||
'("&" . meow-query-replace) | ||
'("%" . meow-query-replace-regexp) | ||
'("'" . repeat) | ||
'("\\" . quoted-insert) | ||
'("<escape>" . meow-last-buffer))) | ||
|
||
(use-package meow | ||
:demand t | ||
:init | ||
(meow-global-mode 1) | ||
:config | ||
(meow-setup) | ||
;; If you want relative line number in NORMAL state(for display-line-numbers-mode) | ||
(meow-setup-line-number) | ||
;; If you need setup indicator, see `meow-indicator' for customizing by hand. | ||
(meow-setup-indicator)) | ||
|
||
(provide 'init-meow) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
(add-hook 'php-mode-hook (lambda () (progn | ||
(electric-indent-local-mode -1) | ||
(modify-syntax-entry ?$ "\_" php-mode-syntax-table)))) | ||
(use-package php-mode | ||
:config | ||
(modify-syntax-entry ?$ "\_" php-mode-syntax-table)) | ||
|
||
(evil-define-key 'insert c-mode-map (kbd "C-l") (lambda () (interactive) (insert "->"))) | ||
(evil-define-key 'insert php-mode-map (kbd "C-l") (lambda () (interactive) (insert "->"))) | ||
(evil-define-key 'insert php-mode-map (kbd "C-j") (lambda () (interactive) (insert " => "))) | ||
;; (evil-define-key 'insert c-mode-map (kbd "C-l") (lambda () (interactive) (insert "->"))) | ||
;; (evil-define-key 'insert php-mode-map (kbd "C-l") (lambda () (interactive) (insert "->"))) | ||
;; (evil-define-key 'insert php-mode-map (kbd "C-j") (lambda () (interactive) (insert " => "))) | ||
|
||
|
||
(provide 'init-php) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.