Changeset 864b0b5 in dotfiles
- Timestamp:
- Jun 4, 2023, 9:49:00 PM (20 months ago)
- Branches:
- master
- Children:
- 3ec75a9
- Parents:
- 6650241
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emacs/.emacs.d/.emacs-config.org
r6650241 r864b0b5 153 153 (package-install 'expand-region) 154 154 ;; (package-install 'flymake-php) 155 ;; (package-install 'flycheck) 155 (package-install 'flycheck) 156 (package-install 'flycheck-phpstan) 156 157 ;; (package-install 'phpactor) 157 158 ;;(package-install 'robe) … … 182 183 ;;(package-install 'phps-mode) 183 184 (package-install 'realgud) 185 (package-install 'realgud-xdebug) 184 186 ;; (package-install 'kiwix) 185 187 ;;(package-install 'sml-mode) … … 202 204 (package-install 'visual-fill-column) 203 205 ;; (package-install 'browse-kill-ring) 204 ;;(package-install 'corfu)206 (package-install 'corfu) 205 207 ;; (package-install 'inf-ruby) 206 208 (package-install 'yaml-mode) … … 208 210 (package-install 'link-hint) 209 211 (package-install 'whole-line-or-region) 212 (package-install 'quickrun) 210 213 ;; (package-install 'psysh) 211 214 ;; (package-install 'restclient) … … 257 260 стал использовать, потому что иксы замыливают этот пиксельный шрифт, что 258 261 делает его использование крайне неприятным. 259 #+begin_src emacs-lisp :tangle nil 260 ;; Do not resize the frame at this early stage. 261 (setq frame-inhibit-implied-resize t) 262 (setq use-dialog-box nil) 263 264 ;;; Disable some gui 265 (scroll-bar-mode -1) 266 (tool-bar-mode -1) 267 (menu-bar-mode -1) 268 ;;(tooltip-mode -1) 269 262 263 #+begin_src emacs-lisp :tangle early-init.el 270 264 ;; Change mode-line-modes to show only major mode 271 265 (defvar mode-line-major-mode … … 312 306 mode-line-end-spaces 313 307 )) 308 #+end_src 309 310 311 #+begin_src emacs-lisp :tangle nil 312 ;; Do not resize the frame at this early stage. 313 (setq frame-inhibit-implied-resize t) 314 (setq use-dialog-box nil) 315 316 ;;; Disable some gui 317 (scroll-bar-mode -1) 318 (tool-bar-mode -1) 319 (menu-bar-mode -1) 320 ;;(tooltip-mode -1) 314 321 315 322 ;;; Changing emacs default setting through customize … … 797 804 ** Дополнение 798 805 ** Дебаггер 799 #+begin_src emacs-lisp :tangle nil806 #+begin_src emacs-lisp :tangle init.el 800 807 (when (package-loaded? "realgud") 801 808 (load "~/.emacs.d/site-lisp/realgud-xdebug/realgud-xdebug.el")) 802 809 #+end_src 803 810 811 #+begin_src emacs-lisp :tangle init.el 812 (when (package-loaded? "geben") 813 (setq geben-dbgp-default-port 9003)) 814 #+end_src 815 804 816 *** Автодополнение кода и документация 805 817 По большей части я использую дефолтный Completion Buffer и Corfu 806 #+begin_src elisp :tangle nil818 #+begin_src elisp :tangle init.el 807 819 (when (package-loaded? "corfu") 808 820 (progn … … 955 967 956 968 ** Линтеры 969 #+begin_src emacs-lisp :tangle init.el 970 (defun my-php-mode-setup () 971 "My PHP-mode hook." 972 (require 'flycheck-phpstan) 973 (flycheck-mode t)) 974 975 (add-hook 'php-mode-hook 'my-php-mode-setup) 976 #+end_src 977 957 978 #+BEGIN_SRC emacs-lisp :tangle nil 958 979 ;; (add-hook 'php-mode-hook 'flymake-php-load) … … 1032 1053 (add-hook 'prog-mode-hook 'rmsbolt-mode) 1033 1054 #+end_src 1055 1056 ** Быстрый запуск программы 1057 #+begin_src emacs-lisp 1058 (when (package-loaded? "quickrun") 1059 (define-key global-map (kbd "C-c C-c") 'quickrun)) 1060 #+end_src 1061 1034 1062 1035 1063 * Языки программирования … … 1096 1124 Необходимо скачать и распаковать мануал PHP (в формате html) в 1097 1125 директорию ~~/.emacs.d/php-manual/~. 1098 #+begin_src emacs-lisp :tangle nil1126 #+begin_src emacs-lisp :tangle init.el 1099 1127 ;; (add-to-list 'load-path "~/.emacs.d/site-lisp/realgud-xdebug/") 1100 1128 ;; (require 'realgud-xdebug) 1101 1129 1102 (defun init-php-mode ()1103 (eglot-ensure))1130 ;; (defun init-php-mode () 1131 ;; (eglot-ensure)) 1104 1132 1105 1133 (with-eval-after-load 'php-mode 1106 (custom-set-variables '(lsp-phpactor-path "/home/w96k/p rojects/phpactor"))1134 (custom-set-variables '(lsp-phpactor-path "/home/w96k/php/phpactor")) 1107 1135 ;; (add-hook 'php-mode-hook #'init-php-mode) 1108 1136 ) 1109 1110 (when (package-loaded? "transient")1111 (progn1112 (transient-define-prefix1113 php ()1114 "Php"1115 [["Class"1116 ("cc" "Copy" phpactor-copy-class)1117 ("cn" "New" phpactor-create-new-class)1118 ("cr" "Move" phpactor-move-class)1119 ("ci" "Inflect" phpactor-inflect-class)1120 ("n" "Namespace" phpactor-fix-namespace)]1121 ["Properties"1122 ("a" "Accessor" phpactor-generate-accessors)1123 ("pc" "Constructor" phpactor-complete-constructor)1124 ("pm" "Add missing props" phpactor-complete-properties)1125 ("r" "Rename var locally" phpactor-rename-variable-local)1126 ("R" "Rename var in file" phpactor-rename-variable-file)]1127 ["Extract"1128 ("ec" "constant" phpactor-extract-constant)1129 ("ee" "expression" phpactor-extract-expression)1130 ("em" "method" phpactor-extract-method)]1131 ["Methods"1132 ("i" "Implement Contracts" phpactor-implement-contracts)1133 ("m" "Generate method" phpactor-generate-method)]1134 ["Navigate"1135 ("x" "List refs" phpactor-list-references)1136 ("X" "Replace refs" phpactor-replace-references)1137 ("." "Goto def" phpactor-goto-definition)]1138 ["Phpactor"1139 ("s" "Status" phpactor-status)1140 ("u" "Install" phpactor-install-or-update)]])))1141 1137 1142 1138 (when (package-loaded? "php-mode") 1143 1139 (progn 1144 1140 (add-hook 'php-mode-hook 'php-enable-symfony2-coding-style) 1145 (setq lsp-intelephense-php-version "8.1. 6")1141 (setq lsp-intelephense-php-version "8.1.16") 1146 1142 (defvar phpactor-executable "~/.local/bin/phpactor") 1147 (custom-set-variables '(lsp-phpactor-path "~/ .local/bin/phpactor"))1143 (custom-set-variables '(lsp-phpactor-path "~/usr/local/bin/phpactor")) 1148 1144 1149 1145 (add-hook 'php-mode-hook 1150 1146 '(lambda () 1151 (require 'yasnippet)1152 (require 'yasnippet-snippets)1147 ;; (require 'yasnippet) 1148 ;; (require 'yasnippet-snippets) 1153 1149 1154 1150 (set-fill-column 120) … … 1157 1153 ;; (setq eldoc-documentation-function 1158 1154 ;; 'phpactor-hover) 1159 (yas-minor-mode t)1155 ;; (yas-minor-mode t) 1160 1156 (define-key php-mode-map (kbd "C-c h") 'php-quickhelp-at-point))) 1161 1157 1162 1158 (setq php-manual-path 1163 "~/ .emacs.d/php-manual/"1164 php-quickhelp-dir "~/ .emacs.d/php-manual/"1159 "~/php/php-manual/" 1160 php-quickhelp-dir "~/php/php-manual/" 1165 1161 php-quickhelp--dest "~/.emacs.d/php-manual/php_manual_en.json") 1166 1162 … … 1642 1638 ** Браузер 1643 1639 #+begin_src emacs-lisp :tangle init.el 1640 (setq browse-url-browser-function #'eww-browse-url) 1641 1644 1642 (add-hook 'eww-mode-hook 1645 1643 (lambda ()
Note:
See TracChangeset
for help on using the changeset viewer.