Changeset 09e91e8 in dotfiles
- Timestamp:
- Apr 16, 2023, 5:57:05 PM (21 months ago)
- Branches:
- master
- Children:
- 420782f
- Parents:
- 56a7a86
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
emacs/.emacs.d/.emacs-config.org
r56a7a86 r09e91e8 153 153 (package-install 'org-sql) 154 154 ;;(package-install 'eglot) 155 (package-install 'eglot-java) 155 156 (package-install 'mastodon) 156 157 (package-install 'exec-path-from-shell) … … 905 906 По большей части я использую дефолтный Completion Buffer и Corfu 906 907 #+begin_src elisp :tangle init.el 907 (when (package-loaded? "corfu") 908 (progn 909 (setq corfu-preview-current 'nil 910 corfu-popupinfo-delay t) 908 (when (package-loaded? "corfu") 909 (progn 910 (setq corfu-preview-current 'nil 911 corfu-popupinfo-delay t) 912 (corfu-mode 1) 913 (corfu-popupinfo-mode 1) 914 (defun show-default-completion-buffer () 915 (interactive) 916 (corfu-quit) 917 (corfu-mode -1) 918 (completion-at-point) 911 919 (corfu-mode 1) 912 (defun show-default-completion-buffer () 913 (interactive) 914 (corfu-quit) 915 (corfu-mode -1) 916 (completion-at-point) 917 (corfu-mode 1) 918 (corfu-popupinfo-mode 1)) 919 (define-key corfu-map (kbd "M-TAB") 'show-default-completion-buffer) 920 (define-key corfu-map (kbd "TAB") 'show-default-completion-buffer) 921 (define-key corfu-map (kbd "C-M-i") 'show-default-completion-buffer) 922 (corfu-mode -1) 923 (add-hook 'prog-mode-hook 'corfu-mode) 924 925 (defun corfu-send-shell (&rest _) 926 "Send completion candidate when inside comint/eshell." 927 (cond 928 ((and (derived-mode-p 'eshell-mode) (fboundp 'eshell-send-input)) 929 (eshell-send-input)) 930 ((and (derived-mode-p 'comint-mode) (fboundp 'comint-send-input)) 931 (comint-send-input)))) 932 933 (advice-add #'corfu-insert :after #'corfu-send-shell) 934 935 (add-hook 'eshell-mode-hook 'corfu-mode))) 920 (corfu-popupinfo-mode 1)) 921 (define-key corfu-map (kbd "M-TAB") 'show-default-completion-buffer) 922 (define-key corfu-map (kbd "TAB") 'show-default-completion-buffer) 923 (define-key corfu-map (kbd "C-M-i") 'show-default-completion-buffer) 924 (corfu-mode -1) 925 (add-hook 'prog-mode-hook 'corfu-mode) 926 927 (defun corfu-send-shell (&rest _) 928 "Send completion candidate when inside comint/eshell." 929 (cond 930 ((and (derived-mode-p 'eshell-mode) (fboundp 'eshell-send-input)) 931 (eshell-send-input)) 932 ((and (derived-mode-p 'comint-mode) (fboundp 'comint-send-input)) 933 (comint-send-input)))) 934 935 (advice-add #'corfu-insert :after #'corfu-send-shell) 936 937 (add-hook 'eshell-mode-hook 'corfu-mode))) 938 936 939 #+end_src 937 940 *** Модификация дефолта … … 1033 1036 ** Клиент LSP 1034 1037 #+begin_src emacs-lisp :tangle init.el 1035 (with-eval-after-load 'eglot 1036 (add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio"))) 1037 1038 ;; No event buffers, disable providers cause a lot of hover traffic. Shutdown unused servers. 1039 (setq eglot-events-buffer-size 0 1040 eglot-ignored-server-capabilities '(:hoverProvider 1041 :documentHighlightProvider) 1042 eglot-autoshutdown t)) 1043 1044 ;; Show all of the available eldoc information when we want it. This way Flymake errors 1045 ;; don't just get clobbered by docstrings. 1046 (add-hook 'eglot-managed-mode-hook 1047 (lambda () 1048 "Make sure Eldoc will show us all of the feedback at point." 1049 (setq-local eldoc-documentation-strategy 1050 #'eldoc-documentation-compose))) 1051 #+end_src 1052 1038 (with-eval-after-load 'eglot 1039 (add-to-list 'eglot-server-programs '((php-mode phps-mode) . ("~/projects/phpactor/bin/phpactor" "language-server" "-vvv"))) 1040 (add-to-list 'eglot-server-programs '((php-mode phps-mode) . ("intelephense" "--stdio"))) 1041 1042 ;; No event buffers, disable providers cause a lot of hover traffic. Shutdown unused servers. 1043 (setq eglot-events-buffer-size 0 1044 eglot-ignored-server-capabilities '(:hoverProvider 1045 :documentHighlightProvider) 1046 eglot-autoshutdown t)) 1047 1048 ;; Show all of the available eldoc information when we want it. This way Flymake errors 1049 ;; don't just get clobbered by docstrings. 1050 (add-hook 'eglot-managed-mode-hook 1051 (lambda () 1052 "Make sure Eldoc will show us all of the feedback at point." 1053 (setq-local eldoc-documentation-strategy 1054 #'eldoc-documentation-compose))) 1055 #+end_src 1056 1053 1057 ** Линтеры 1054 #+BEGIN_SRC emacs-lisp :tangle nil 1055 ;;(add-hook 'php-mode-hook 'flymake-php-load) 1056 ;; (add-hook 'php-mode-hook 'flymake-phpstan-turn-on)p 1057 ;;(add-hook 'php-mode-hook 'flymake-phpcs-load) 1058 #+BEGIN_SRC emacs-lisp :tangle init.el 1059 ;; (add-hook 'php-mode-hook 'flymake-php-load) 1060 ;; (add-hook 'php-mode-hook 'flymake-phpstan-turn-on) 1061 1062 ;; (require 'flycheck-phpstan) 1063 1058 1064 1059 1065 ;;(add-to-list 'auto-mode-alist '("\\.\\(php\\|phtml\\)\\'" . phps-mode)) … … 1196 1202 ;; (require 'realgud-xdebug) 1197 1203 1204 (defun init-php-mode () 1205 (eglot-ensure)) 1206 1207 (with-eval-after-load 'php-mode 1208 (custom-set-variables '(lsp-phpactor-path "/home/w96k/projects/phpactor")) 1209 ;; (add-hook 'php-mode-hook #'init-php-mode) 1210 ) 1211 1198 1212 (when (package-loaded? "transient") 1199 1213 (progn 1200 1214 (transient-define-prefix 1201 1202 1203 1204 ("cc" "Copy" phpactor-copy-class)1205 ("cn" "New" phpactor-create-new-class)1206 ("cr" "Move" phpactor-move-class)1207 ("ci" "Inflect" phpactor-inflect-class)1208 ("n" "Namespace" phpactor-fix-namespace)]1209 ["Properties"1210 ("a" "Accessor" phpactor-generate-accessors)1211 ("pc" "Constructor" phpactor-complete-constructor)1212 ("pm" "Add missing props" phpactor-complete-properties)1213 ("r" "Rename var locally" phpactor-rename-variable-local)1214 ("R" "Rename var in file" phpactor-rename-variable-file)]1215 ["Extract"1216 ("ec" "constant" phpactor-extract-constant)1217 ("ee" "expression" phpactor-extract-expression)1218 ("em" "method" phpactor-extract-method)]1219 ["Methods"1220 ("i" "Implement Contracts" phpactor-implement-contracts)1221 ("m" "Generate method" phpactor-generate-method)]1222 ["Navigate"1223 ("x" "List refs" phpactor-list-references)1224 ("X" "Replace refs" phpactor-replace-references)1225 ("." "Goto def" phpactor-goto-definition)]1226 ["Phpactor"1227 ("s" "Status" phpactor-status)1228 ("u" "Install" phpactor-install-or-update)]])))1215 php () 1216 "Php" 1217 [["Class" 1218 ("cc" "Copy" phpactor-copy-class) 1219 ("cn" "New" phpactor-create-new-class) 1220 ("cr" "Move" phpactor-move-class) 1221 ("ci" "Inflect" phpactor-inflect-class) 1222 ("n" "Namespace" phpactor-fix-namespace)] 1223 ["Properties" 1224 ("a" "Accessor" phpactor-generate-accessors) 1225 ("pc" "Constructor" phpactor-complete-constructor) 1226 ("pm" "Add missing props" phpactor-complete-properties) 1227 ("r" "Rename var locally" phpactor-rename-variable-local) 1228 ("R" "Rename var in file" phpactor-rename-variable-file)] 1229 ["Extract" 1230 ("ec" "constant" phpactor-extract-constant) 1231 ("ee" "expression" phpactor-extract-expression) 1232 ("em" "method" phpactor-extract-method)] 1233 ["Methods" 1234 ("i" "Implement Contracts" phpactor-implement-contracts) 1235 ("m" "Generate method" phpactor-generate-method)] 1236 ["Navigate" 1237 ("x" "List refs" phpactor-list-references) 1238 ("X" "Replace refs" phpactor-replace-references) 1239 ("." "Goto def" phpactor-goto-definition)] 1240 ["Phpactor" 1241 ("s" "Status" phpactor-status) 1242 ("u" "Install" phpactor-install-or-update)]]))) 1229 1243 1230 1244 (when (package-loaded? "php-mode") … … 1232 1246 (add-hook 'php-mode-hook 'php-enable-symfony2-coding-style) 1233 1247 (setq lsp-intelephense-php-version "8.1.6") 1234 (defvar phpactor-executable "~/.bin/phpactor") 1248 (defvar phpactor-executable "~/.local/bin/phpactor") 1249 (custom-set-variables '(lsp-phpactor-path "~/.local/bin/phpactor")) 1235 1250 1236 1251 (add-hook 'php-mode-hook … … 1241 1256 (set-fill-column 120) 1242 1257 1243 (make-local-variable 'eldoc-documentation-function)1244 (setq eldoc-documentation-function1245 1258 ;; (make-local-variable 'eldoc-documentation-function) 1259 ;; (setq eldoc-documentation-function 1260 ;; 'phpactor-hover) 1246 1261 (yas-minor-mode t) 1247 1262 (define-key php-mode-map (kbd "C-c h") 'php-quickhelp-at-point))) … … 1446 1461 org-outline-path-complete-in-steps nil 1447 1462 org-src-tab-acts-natively t 1463 org-id-track-globally t 1448 1464 org-confirm-babel-evaluate nil) 1449 1465 … … 1486 1502 (when (package-loaded? "org-roam") 1487 1503 (progn 1488 (setq org-roam-directory (file-truename "~/projects/at-w96k/content/digarden/ ")1504 (setq org-roam-directory (file-truename "~/projects/at-w96k/content/digarden/pages/") 1489 1505 org-roam-v2-ack t 1490 1506 org-roam-completion-everywhere t 1491 org-roam-index-file (concat org-roam-directory "/20210409054712-жизнь.org")) 1492 1493 ;; (load "org-roam-ui-autoloads") 1494 ;; (org-roam-db-sync) 1495 1496 ;; (org-roam-db-autosync-mode t) 1507 org-roam-index-file (concat org-roam-directory "/20210409054712-жизнь.org") 1508 org-roam-dailies-directory (concat org-roam-directory "journals/")) 1509 1510 (org-roam-db-autosync-mode t) 1497 1511 1498 1512 (defun org-roam-jump-to-index () … … 1504 1518 1505 1519 (define-key global-map 1506 (kbd "C-c n l") 'org-roam-node-insert)1520 (kbd "C-c n l") 'org-roam-node-insert) 1507 1521 (define-key global-map 1508 (kbd "C-c n f") 'org-roam-node-find)1522 (kbd "C-c n f") 'org-roam-node-find) 1509 1523 (define-key global-map 1510 (kbd "C-c n b") 'org-roam-buffer-toggle)1524 (kbd "C-c n b") 'org-roam-buffer-toggle) 1511 1525 (define-key global-map 1512 (kbd "C-c n t t") 'org-roam-tag-add)1526 (kbd "C-c n t t") 'org-roam-tag-add) 1513 1527 (define-key global-map 1514 (kbd "C-c n t r") 'org-roam-tag-remove)1528 (kbd "C-c n t r") 'org-roam-tag-remove) 1515 1529 (define-key global-map 1516 (kbd "C-c n i") 'org-roam-jump-to-index)1530 (kbd "C-c n i") 'org-roam-jump-to-index) 1517 1531 (define-key global-map 1518 (kbd "C-c n g") 'org-roam-graph)1532 (kbd "C-c n g") 'org-roam-graph) 1519 1533 (define-key global-map 1520 (kbd "C-c n d") 'org-roam-db-build-cache)1534 (kbd "C-c n d") 'org-roam-db-build-cache) 1521 1535 (define-key global-map 1522 (kbd "C-c n r") 'org-roam-node-random)1536 (kbd "C-c n r") 'org-roam-node-random) 1523 1537 (define-key global-map 1524 (kbd "C-c n j") 'org-roam-dailies-find-date)))1538 (kbd "C-c n j") 'org-roam-dailies-find-date))) 1525 1539 1526 1540 (customize-set-variable 'org-link-descriptive t) -
wm/.stumpwmrc
r56a7a86 r09e91e8 12 12 (defcommand icecat () () 13 13 (run-or-raise "icecat" '(:class "IceCat"))) 14 15 (defcommand firefox () () 16 (run-or-raise "firefox" '(:class "Firefox"))) 14 17 15 18 (defcommand nyxt () () … … 52 55 53 56 ;; Gaps: useless concept to be honest 54 (load-module "swm-gaps")57 ;; (load-module "swm-gaps") 55 58 ;; (setf swm-gaps:*inner-gaps-size* 0) 56 59 ;; (setf swm-gaps:*outer-gaps-size* 2)
Note:
See TracChangeset
for help on using the changeset viewer.