Changeset 56a7a86 in dotfiles
- Timestamp:
- Feb 28, 2023, 3:19:52 PM (23 months ago)
- Branches:
- master
- Children:
- 09e91e8
- Parents:
- d881dae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emacs/.emacs.d/.emacs-config.org
rd881dae r56a7a86 158 158 (package-install 'flymake-php) 159 159 (package-install 'flycheck) 160 (package-install 'phpactor) 160 161 ;;(package-install 'robe) 161 162 (package-install 'geiser) … … 1189 1190 ** PHP 1190 1191 *** PHP-Mode 1191 Не осуждайте. Необходимо скачать и распаковать мануал PHP (в формате1192 html) вдиректорию ~~/.emacs.d/php-manual/~.1192 Необходимо скачать и распаковать мануал PHP (в формате html) в 1193 директорию ~~/.emacs.d/php-manual/~. 1193 1194 #+begin_src emacs-lisp :tangle init.el 1194 1195 ;; (add-to-list 'load-path "~/.emacs.d/site-lisp/realgud-xdebug/") 1195 1196 ;; (require 'realgud-xdebug) 1197 1198 (when (package-loaded? "transient") 1199 (progn 1200 (transient-define-prefix 1201 php () 1202 "Php" 1203 [["Class" 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)]]))) 1196 1229 1197 1230 (when (package-loaded? "php-mode") … … 1199 1232 (add-hook 'php-mode-hook 'php-enable-symfony2-coding-style) 1200 1233 (setq lsp-intelephense-php-version "8.1.6") 1201 ;;(defvar phpactor-executable "~/.bin/phpactor")1234 (defvar phpactor-executable "~/.bin/phpactor") 1202 1235 1203 1236 (add-hook 'php-mode-hook … … 1205 1238 (require 'yasnippet) 1206 1239 (require 'yasnippet-snippets) 1240 1241 (set-fill-column 120) 1242 1243 (make-local-variable 'eldoc-documentation-function) 1244 (setq eldoc-documentation-function 1245 'phpactor-hover) 1207 1246 (yas-minor-mode t) 1208 1247 (define-key php-mode-map (kbd "C-c h") 'php-quickhelp-at-point)))
Note:
See TracChangeset
for help on using the changeset viewer.