Changeset 6782e9b in dotfiles for emacs/.emacs.d/.emacs-config.org


Ignore:
Timestamp:
Jul 4, 2024, 1:25:04 AM (4 months ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
a6193f9
Parents:
8f6be2b
Message:

Make emacs work again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emacs/.emacs.d/.emacs-config.org

    r8f6be2b r6782e9b  
    117117  (require 'gnutls)
    118118
    119   (when (not package-archive-contents)
    120     (progn
     119  (progn
    121120      (package-refresh-contents)
    122121      (package-install 'avy)
     122      (package-install 'php-mode)
     123      (package-install 'phps-mode)
    123124      ;; (package-install 'anzu)
    124125      (package-install 'anaconda-mode)
    125126      (package-install 'auctex)
    126       (package-install 'rmsbolt)
     127      ;; (package-install 'rmsbolt)
    127128      ;; (package-install 'beginend)
    128129      ;; (package-install 'composer)
     
    155156      (package-install 'flycheck)
    156157      (package-install 'flycheck-phpstan)
    157       ;; (package-install 'phpactor)
     158      (package-install 'phpactor)
    158159      ;;(package-install 'robe)
    159160      (package-install 'geiser)
     
    183184      ;;(package-install 'phps-mode)
    184185      (package-install 'realgud)
    185       (package-install 'realgud-xdebug)
     186      ;; (package-install 'realgud-xdebug)
    186187      ;; (package-install 'kiwix)
    187188      ;;(package-install 'sml-mode)
     
    213214      ;; (package-install 'psysh)
    214215      ;; (package-install 'restclient)
    215       ))
     216      )
    216217#+end_src
    217218
     
    256257** EXWM
    257258
    258 #+begin_src emacs-lisp :tangle init.el
     259#+begin_src emacs-lisp :tangle nil
    259260  (require 'exwm)
    260261  (require 'exwm-config)
     
    397398
    398399  (require 'package)
     400  (package-initialize)
    399401
    400402  (defun package-loaded? (string)
     
    767769
    768770** Клиент LSP
    769 #+begin_src emacs-lisp :tangle nil
    770   (with-eval-after-load 'eglot
    771     (add-to-list 'eglot-server-programs '((php-mode phps-mode) . ("~/projects/phpactor/bin/phpactor" "language-server" "-vvv")))
    772     (add-to-list 'eglot-server-programs '((php-mode phps-mode) . ("intelephense" "--stdio")))
    773 
    774     ;; No event buffers, disable providers cause a lot of hover traffic. Shutdown unused servers.
    775     (setq eglot-events-buffer-size 0
    776           eglot-ignored-server-capabilities '(:hoverProvider
    777                                               :documentHighlightProvider)
    778           eglot-autoshutdown t))
     771#+begin_src emacs-lisp :tangle init.el
     772  ;; (with-eval-after-load 'eglot
     773  ;;   (add-to-list 'eglot-server-programs '((php-mode phps-mode) . ("~/projects/phpactor/bin/phpactor" "language-server" "-vvv")))
     774  ;;   (add-to-list 'eglot-server-programs '((php-mode phps-mode) . ("intelephense" "--stdio")))
     775
     776  ;;   ;; No event buffers, disable providers cause a lot of hover traffic. Shutdown unused servers.
     777  ;;   (setq eglot-events-buffer-size 0
     778  ;;    eglot-ignored-server-capabilities '(:hoverProvider
     779  ;;                                        :documentHighlightProvider)
     780  ;;    eglot-autoshutdown t))
    779781
    780782  ;; Show all of the available eldoc information when we want it. This way Flymake errors
     
    871873Показывает собранное состояние будь то собранный куски на ассемблере
    872874или байт-код при помощи пакета RMSbolt.
    873 #+begin_src emacs-lisp :tangle init.el
     875#+begin_src emacs-lisp :tangle nil
    874876  (add-hook 'prog-mode-hook 'rmsbolt-mode)
    875877#+end_src
     
    951953  ;; (defun init-php-mode ()
    952954  ;;   (eglot-ensure))
    953 
     955 
    954956  (with-eval-after-load 'php-mode
    955     (custom-set-variables '(lsp-phpactor-path "/home/w96k/php/phpactor"))
     957
    956958    ;; (add-hook 'php-mode-hook #'init-php-mode)
    957959    )
     
    961963      (add-hook 'php-mode-hook 'php-enable-symfony2-coding-style)
    962964      (setq lsp-intelephense-php-version "8.1.16")
    963       (defvar phpactor-executable "~/.local/bin/phpactor")
     965      (defvar phpactor-executable "~/.bin/phpactor")
    964966      (custom-set-variables '(lsp-phpactor-path "~/usr/local/bin/phpactor"))
    965967
     
    10351037
    10361038*** Composer
     1039#+begin_src emacs-lisp :tangle init.el
     1040  (setq composer-executable-bin "~/.bin/composer")
     1041#+end_src
     1042
    10371043*** Flymake PHP
    10381044*** REPL
     
    10401046PHPactor
    10411047#+begin_src emacs-lisp :tangle nil
    1042   (with-eval-after-load 'php-mode
    1043     (define-key php-mode-map (kbd "M-.") #'phpactor-goto-definition)
    1044     (define-key php-mode-map (kbd "M-?") #'phpactor-find-references))
     1048  (setq phpactor-executable "~/.bin/phpactor")
     1049  (custom-set-variables '(lsp-phpactor-path "~/.bin/phpactor"))
     1050
     1051  (use-package phpactor :ensure t)
     1052  (use-package company-phpactor :ensure t)
     1053
     1054
     1055
     1056  ;; (with-eval-after-load 'php-mode
     1057  ;;   (define-key php-mode-map (kbd "M-.") #'phpactor-goto-definition)
     1058  ;;   (define-key php-mode-map (kbd "M-?") #'phpactor-find-references))
    10451059#+end_src
    10461060
     
    12161230  (when (package-loaded? "org-roam")
    12171231    (progn
    1218       (setq org-roam-directory (file-truename "~/projects/at-w96k/content/digarden/pages/")
     1232      (setq org-roam-directory (file-truename "~/Zettelkasten")
    12191233            org-roam-v2-ack t
    12201234            org-roam-completion-everywhere t
Note: See TracChangeset for help on using the changeset viewer.