Changeset 0d11196 in dotfiles
- Timestamp:
- May 24, 2023, 8:08:21 PM (20 months ago)
- Branches:
- master
- Children:
- 6650241
- Parents:
- 733c9a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emacs/.emacs.d/.emacs-config.org
r733c9a0 r0d11196 125 125 (package-install 'auctex) 126 126 (package-install 'rmsbolt) 127 (package-install 'beginend)127 ;; (package-install 'beginend) 128 128 ;; (package-install 'composer) 129 129 (package-install 'cinspect) … … 140 140 (package-install 'debbugs) 141 141 ;;(package-install 'deft) 142 (package-install 'direnv)142 ;; (package-install 'direnv) 143 143 (package-install 'dumb-jump) 144 144 (package-install 'docker) … … 148 148 (package-install 'org-sql) 149 149 ;;(package-install 'eglot) 150 (package-install 'eglot-java)151 (package-install 'mastodon)152 (package-install 'exec-path-from-shell)150 ;; (package-install 'eglot-java) 151 ;; (package-install 'mastodon) 152 ;; (package-install 'exec-path-from-shell) 153 153 (package-install 'expand-region) 154 (package-install 'flymake-php)155 (package-install 'flycheck)156 (package-install 'phpactor)154 ;; (package-install 'flymake-php) 155 ;; (package-install 'flycheck) 156 ;; (package-install 'phpactor) 157 157 ;;(package-install 'robe) 158 158 (package-install 'geiser) 159 159 (package-install 'geiser-guile) 160 160 (package-install 'guix) 161 (package-install 'git-gutter)162 (package-install 'gnuplot)161 ;; (package-install 'git-gutter) 162 ;; (package-install 'gnuplot) 163 163 ;;(package-install 'swiper) 164 164 ;;(package-install 'sqlite3) 165 165 (package-install 'org-roam) 166 166 ;; (package-install 'org-roam-ui) 167 (package-install 'org-download)168 (package-install 'org-babel-eval-in-repl)167 ;; (package-install 'org-download) 168 ;; (package-install 'org-babel-eval-in-repl) 169 169 ;;(package-install 'ob-php) 170 (package-install 'on-screen)170 ;; (package-install 'on-screen) 171 171 ;;(package-install 'nix-mode) 172 172 (package-install 'pdf-tools) … … 182 182 ;;(package-install 'phps-mode) 183 183 (package-install 'realgud) 184 (package-install 'kiwix)184 ;; (package-install 'kiwix) 185 185 ;;(package-install 'sml-mode) 186 186 (package-install 'sly) … … 189 189 ;;(package-install 'treemacs) 190 190 (package-install 'undo-tree) 191 (package-install 'yasnippet)192 (package-install 'yasnippet-snippets)193 (package-install 'vimrc-mode)194 (package-install 'flymake-phpcs)195 (package-install 'flymake-phpstan)196 (package-install 'no-littering)191 ;; (package-install 'yasnippet) 192 ;; (package-install 'yasnippet-snippets) 193 ;; (package-install 'vimrc-mode) 194 ;; (package-install 'flymake-phpcs) 195 ;; (package-install 'flymake-phpstan) 196 ;; (package-install 'no-littering) 197 197 (package-install 'web-mode) 198 (package-install 'which-key)199 (package-install 'reverse-im)198 ;; (package-install 'which-key) 199 ;; (package-install 'reverse-im) 200 200 (package-install 'imenu-list) 201 (package-install 'isearch-mb)201 ;; (package-install 'isearch-mb) 202 202 (package-install 'visual-fill-column) 203 (package-install 'browse-kill-ring)204 (package-install 'corfu)205 (package-install 'inf-ruby)203 ;; (package-install 'browse-kill-ring) 204 ;; (package-install 'corfu) 205 ;; (package-install 'inf-ruby) 206 206 (package-install 'yaml-mode) 207 (package-install 'geben)207 ;; (package-install 'geben) 208 208 (package-install 'link-hint) 209 209 (package-install 'whole-line-or-region) 210 (package-install 'psysh) 211 (package-install 'restclient))) 210 ;; (package-install 'psysh) 211 ;; (package-install 'restclient) 212 )) 212 213 #+end_src 213 214 … … 256 257 стал использовать, потому что иксы замыливают этот пиксельный шрифт, что 257 258 делает его использование крайне неприятным. 258 #+begin_src emacs-lisp :tangle init.el259 #+begin_src emacs-lisp :tangle nil 259 260 ;; Do not resize the frame at this early stage. 260 261 (setq frame-inhibit-implied-resize t) … … 412 413 ;; Information about me 413 414 (setq user-full-name "Mikhail Kirillov" 414 user-mail-address "w96k .ru@gmail.com")415 user-mail-address "w96k@runbox.com") 415 416 #+END_SRC 416 417 … … 445 446 ** Назначение шрифтов 446 447 А также отступа между строк 447 #+BEGIN_SRC emacs-lisp :tangle init.el448 #+BEGIN_SRC emacs-lisp :tangle nil 448 449 ;;; Set font 449 450 (setq-default line-spacing 0) … … 463 464 (define-key global-map 464 465 (kbd "<f7>") 'global-display-line-numbers-mode) 465 466 466 467 (define-key global-map 467 468 (kbd "<f6>") 'whitespace-mode) … … 470 471 ** Скроллинг 471 472 Помечает на время часть старого буфера при скроллинге. 472 #+BEGIN_SRC emacs-lisp :tangle init.el473 #+BEGIN_SRC emacs-lisp :tangle nil 473 474 (when (package-loaded? "on-screen") 474 475 (on-screen-global-mode t)) … … 566 567 ** Файловый менеджер 567 568 #+BEGIN_SRC emacs-lisp :tangle init.el 568 (setq dired-async-mode t)569 569 ;; Show files in KiB 570 570 (setq dired-listing-switches "-hlap" … … 650 650 651 651 ** Better Isearch 652 #+begin_src emacs-lisp :tangle init.el652 #+begin_src emacs-lisp :tangle nil 653 653 (when (package-loaded? "isearch-mb") 654 654 (progn … … 676 676 (setq vc-command-messages t) 677 677 678 ;;(load "git-dwim-autoloads")679 680 678 (global-set-key "\C-xvB" 'git-branch-next-action) 681 682 ;; Fix for transient to behave like a normal buffer683 ;; (with-eval-after-load 'transient684 ;; (setq685 ;; transient--buffer-name "*transient*"686 ;; ;; transient-detect-key-conflicts t687 ;; ;; transient-highlight-mismatched-keys t688 ;; ;; transient--debug t689 ;; transient-enable-popup-navigation t690 ;; transient-mode-line-format mode-line-format691 ;; transient-display-buffer-action '(display-buffer-below-selected))692 693 ;; (let ((map transient-base-map))694 ;; (define-key map (kbd "C-g") 'transient-quit-all)695 ;; (define-key map (kbd "C-q") 'transient-quit-one)696 ;; (define-key map (kbd "DEL") 'transient-quit-one))697 698 ;; (define-key transient-map (kbd "C-h") nil)699 700 ;; (let ((map transient-popup-navigation-map))701 ;; (define-key map (kbd "<tab>") 'transient-forward-button)702 ;; (define-key map (kbd "<backtab>") 'transient-backward-button ))703 704 ;; (transient-suffix-put 'transient-common-commands705 ;; "C-g" :command 'transient-quit-all)706 ;; (transient-suffix-put 'transient-common-commands707 ;; "C-q" :command 'transient-quit-one)708 709 ;; (defun al/transient-fix-window ()710 ;; "Return `transient--window' to a 'normal' state."711 ;; (set-window-dedicated-p transient--window nil)712 ;; (set-window-parameter transient--window 'no-other-window nil)713 ;; (with-selected-window transient--window714 ;; (setq715 ;; window-size-fixed nil716 ;; cursor-in-non-selected-windows t717 ;; cursor-type (default-value 'cursor-type)718 ;; mode-line-buffer-identification719 ;; (list ""720 ;; (symbol-name (oref transient--prefix command))721 ;; " " (default-value 'mode-line-buffer-identification)))))722 723 ;; (define-derived-mode al/transient-mode special-mode "al/transient"724 ;; (setq buffer-read-only nil)725 ;; (al/transient-fix-window))726 727 ;; (defun al/transient-push-keymap (map)728 ;; (with-demoted-errors "al/transient-push-keymap: %S"729 ;; (internal-push-keymap (symbol-value map) 'al/transient-mode-map)))730 731 ;; (defun al/transient-pop-keymap (map)732 ;; (with-demoted-errors "al/transient-pop-keymap: %S"733 ;; (internal-pop-keymap (symbol-value map) 'al/transient-mode-map)))734 735 ;; (defun al/transient-fix-show (&rest _)736 ;; (transient--debug 'al/transient-fix-show)737 ;; (al/transient-fix-window)738 ;; (select-window transient--window))739 740 ;; (defun al/transient-fix-init (&rest _)741 ;; (transient--debug 'al/transient-fix-init)742 ;; (with-current-buffer transient--buffer-name743 ;; (al/transient-mode)))744 745 ;; (defun al/transient-fix-pre/post-command (fun &rest args)746 ;; (transient--debug 'al/transient-fix-pre/post-command)747 ;; ;; Do anything only for transient commands.748 ;; (when (or (get this-command 'transient--prefix)749 ;; (string-match-p "\\`transient"750 ;; (symbol-name this-command))751 ;; (and transient--transient-map752 ;; (string= (buffer-name) transient--buffer-name)753 ;; (lookup-key transient--transient-map754 ;; (this-single-command-raw-keys))))755 ;; (apply fun args)))756 757 ;; (defun al/transient-fix-delete-window (fun &rest args)758 ;; (unless (eq transient--exitp 'suspend)759 ;; (apply fun args)))760 761 ;; (advice-add 'transient--minibuffer-setup :override #'ignore)762 ;; (advice-add 'transient--minibuffer-exit :override #'ignore)763 ;; (advice-add 'transient--push-keymap :override #'al/transient-push-keymap)764 ;; (advice-add 'transient--pop-keymap :override #'al/transient-pop-keymap)765 ;; (advice-add 'transient--pre-command :around #'al/transient-fix-pre/post-command)766 ;; (advice-add 'transient--post-command :around #'al/transient-fix-pre/post-command)767 ;; (advice-add 'transient--show :after #'al/transient-fix-show)768 ;; (advice-add 'transient--init-transient :after #'al/transient-fix-init)769 ;; (advice-add 'transient--delete-window :around #'al/transient-fix-delete-window))770 679 771 680 ;; Use magit only when built-in VC fails … … 852 761 853 762 ** Подсвечивание парных скобок 854 #+BEGIN_SRC emacs-lisp :tangle init.el855 ;;; Show pair for a parenthesis856 (show-paren-mode)857 #+END_SRC858 859 763 ** Ввод парных скобок и кавычек (electric) 860 764 #+BEGIN_SRC emacs-lisp :tangle init.el … … 862 766 (electric-pair-mode) 863 767 (add-hook 'prog-mode-hook 'electric-pair-mode) 864 ;;(add-hook 'prog-mode-hook 'rainbow-identifiers-mode)768 (add-hook 'prog-mode-hook 'rainbow-identifiers-mode) 865 769 #+END_SRC 866 770 867 771 ** Kill-ring 868 #+BEGIN_SRC emacs-lisp :tangle init.el772 #+BEGIN_SRC emacs-lisp :tangle nil 869 773 (when (package-loaded? "browse-kill-ring") 870 774 (define-key global-map (kbd "C-M-y") 'browse-kill-ring)) … … 873 777 ** Tags 874 778 Для прыжков и поиска функций/классов и т.д. 875 #+BEGIN_SRC emacs-lisp :tangle init.el779 #+BEGIN_SRC emacs-lisp :tangle nil 876 780 (setq path-to-ctags "~/.guix-profile/bin/ctags") 877 781 … … 900 804 *** Автодополнение кода и документация 901 805 По большей части я использую дефолтный Completion Buffer и Corfu 902 #+begin_src elisp :tangle init.el806 #+begin_src elisp :tangle nil 903 807 (when (package-loaded? "corfu") 904 808 (progn … … 1051 955 1052 956 ** Линтеры 1053 #+BEGIN_SRC emacs-lisp :tangle init.el957 #+BEGIN_SRC emacs-lisp :tangle nil 1054 958 ;; (add-hook 'php-mode-hook 'flymake-php-load) 1055 959 ;; (add-hook 'php-mode-hook 'flymake-phpstan-turn-on) … … 1073 977 1074 978 ** Сессия 1075 #+BEGIN_SRC emacs-lisp :tangle init.el1076 (desktop-save-mode 0)979 #+BEGIN_SRC emacs-lisp :tangle nil 980 (desktop-save-mode 1) 1077 981 #+END_SRC 1078 982 ** Скроллинг … … 1139 1043 (cmucl ("cmucl" "-quiet")) 1140 1044 (sbcl ("/opt/sbcl/bin/sbcl") :coding-system utf-8-unix))) 1141 1142 1045 #+END_SRC 1143 1046 … … 1148 1051 1149 1052 ** Ruby 1150 #+BEGIN_SRC emacs-lisp :tangle init.el1053 #+BEGIN_SRC emacs-lisp :tangle nil 1151 1054 (when (package-loaded? "inf-ruby") 1152 1055 (add-hook 'ruby-mode-hook 'inf-ruby-minor-mode)) … … 1193 1096 Необходимо скачать и распаковать мануал PHP (в формате html) в 1194 1097 директорию ~~/.emacs.d/php-manual/~. 1195 #+begin_src emacs-lisp :tangle init.el1098 #+begin_src emacs-lisp :tangle nil 1196 1099 ;; (add-to-list 'load-path "~/.emacs.d/site-lisp/realgud-xdebug/") 1197 1100 ;; (require 'realgud-xdebug) … … 1361 1264 Need to install lsp-server called sqls 1362 1265 https://emacs-lsp.github.io/lsp-mode/page/lsp-sqls/ 1363 #+BEGIN_SRC emacs-lisp :tangle init.el1266 #+BEGIN_SRC emacs-lisp :tangle nil 1364 1267 ;; Empty for now (was using emacsql) 1365 1268 (setq lsp-sqls-server "~/go/bin/sqls") … … 1372 1275 1373 1276 The main way to interact with SQL is using org-mode 1374 #+begin_src emacs-lisp :tangle init.el1277 #+begin_src emacs-lisp :tangle nil 1375 1278 (when (package-loaded? "org-sql") 1376 1279 (setq org-sql-files "~/projects/profile24/org")) … … 1386 1289 (sql-server "localhost") 1387 1290 (sql-user "dbuser") 1388 (sql-password " mangoworms")1389 (sql-database " profile24")1291 (sql-password "123456") 1292 (sql-database "testdb") 1390 1293 (sql-port 3306)))) 1391 1294 #+end_src … … 1405 1308 (setq web-mode-enable-css-colorization t) 1406 1309 (setq web-mode-enable-block-face t) 1407 (setq web-mode-enable-current-element-highlight t) 1408 (setq web-mode-enable-current-column-highlight t))) 1310 (setq web-mode-enable-current-element-highlight t))) 1409 1311 #+END_SRC 1410 1312 … … 1552 1454 * Коммуникации 1553 1455 ** Telega 1554 #+BEGIN_SRC emacs-lisp :tangle init.el1456 #+BEGIN_SRC emacs-lisp :tangle nil 1555 1457 (when (package-loaded? "telega") 1556 1458 (setq telega-filter-custom-show-folders t … … 1563 1465 1564 1466 ** Mastodon 1565 #+begin_src emacs-lisp :tangle init.el1467 #+begin_src emacs-lisp :tangle nil 1566 1468 (when (package-loaded? "mastodon") 1567 1469 (setq mastodon-active-user "w96k" … … 1574 1476 ** Минорные твики дефолтного имакса 1575 1477 *** Короткие ответы на вопросы 1576 #+begin_src emacs-lisp 1478 #+begin_src emacs-lisp :tangle init.el 1577 1479 (if (boundp 'use-short-answers) 1578 1480 (setq use-short-answers t) … … 1588 1490 1589 1491 *** Подсвечивать текущую строку 1590 #+begin_src emacs-lisp :tangle init.el1492 #+begin_src emacs-lisp :tangle nil 1591 1493 (global-hl-line-mode 1) 1592 1494 #+end_src … … 1599 1501 1600 1502 *** Автодополнение в echo при M-x и других командах 1601 #+begin_src emacs-lisp :tangle init.el1503 #+begin_src emacs-lisp :tangle nil 1602 1504 (icomplete-mode 1) 1603 1505 #+end_src … … 1613 1515 1614 1516 *** Переключение буферов 1615 #+BEGIN_SRC emacs-lisp :tangle nil1517 #+BEGIN_SRC emacs-lisp :tangle init.el 1616 1518 (global-set-key (kbd "M-o") 'mode-line-other-buffer) 1617 1519 #+END_SRC … … 1619 1521 *** Минорные твики 1620 1522 #+begin_src emacs-lisp :tangle init.el 1621 1622 (setq redisplay-dont-pause t) 1523 ;; (setq redisplay-dont-pause t) 1623 1524 1624 1525 (setq select-enable-clipboard t … … 1638 1539 ;; (set-window-buffer nil (current-buffer)) 1639 1540 1640 1541 (setq default-directory "~/" 1641 1542 delete-seleciton-mode t 1642 1543 inhibit-startup-message t … … 1655 1556 1656 1557 *** Переменная PATH в eshell 1657 #+BEGIN_SRC emacs-lisp :tangle init.el1558 #+BEGIN_SRC emacs-lisp :tangle nil 1658 1559 (setq exec-path-from-shell-variables 1659 1560 '("PATH" "MANPATH")) … … 1677 1578 По неизвестным причинам навигация в меню при помощи биндов Emacs 1678 1579 не работает 1679 #+BEGIN_SRC emacs-lisp :tangle nil1580 #+BEGIN_SRC emacs-lisp :tangle init.el 1680 1581 ;; GTK menu doesn't allow emacs-style navigation 1681 1582 (define-key global-map (kbd "<f10>") 'tmm-menubar) … … 1689 1590 backup-by-copying t 1690 1591 backup-directory-alist 1691 '((" ." . "~/.emacs.d/backups/"))1592 '(("~/.emacs.d/backups/")) 1692 1593 version-control nil) 1693 1594 #+END_SRC … … 1750 1651 ** Tramp 1751 1652 #+begin_src emacs-lisp :tangle nil 1752 1653 (add-to-list 'tramp-remote-path 'tramp-own-remote-path) 1753 1654 #+end_src 1754 1655 … … 1787 1688 1788 1689 ** Nix 1789 #+begin_src emacs-lisp 1690 #+begin_src emacs-lisp :tangle nil 1790 1691 (package-loaded? "nix") 1791 1692 #+end_src … … 1796 1697 #+end_src 1797 1698 ** Direnv 1798 #+BEGIN_SRC emacs-lisp :tangle init.el1699 #+BEGIN_SRC emacs-lisp :tangle nil 1799 1700 (when (package-loaded? "direnv") 1800 1701 (direnv-mode))
Note:
See TracChangeset
for help on using the changeset viewer.