Changeset 5acd0cd in dotfiles for emacs/.emacs.d/.emacs-config.org
- Timestamp:
- Oct 9, 2022, 11:26:33 PM (2 years ago)
- Branches:
- master
- Children:
- 877bb6c
- Parents:
- 805d49d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emacs/.emacs.d/.emacs-config.org
r805d49d r5acd0cd 106 106 (package-initialize) 107 107 108 (if (or (eq system-type 'berkeley-unix) 109 (string-match-p (regexp-quote "Debian") 110 (shell-command-to-string "lsb_release -d | awk -F\"\t\" '{print $2}'"))) 111 (when (not package-archive-contents) 112 (progn 113 (package-refresh-contents) 114 (package-install 'avy) 115 ;; (package-install 'anzu) 116 (package-install 'anaconda-mode) 117 (package-install 'auctex) 118 (package-install 'beginend) 119 (package-install 'composer) 120 (package-install 'mini-modeline) 121 (package-install 'cinspect) 122 (package-install 'debian-el) 123 (package-install 'dpkg-dev-el) 124 (package-install 'edebug-inline-result) 125 ;;(package-install 'haskell-mode) 126 ;;(package-install 'idris-mode) 127 (package-install 'magit) 128 (package-install 'git-dwim) 129 (package-install 'gitpatch) 130 (package-install 'goto-chg) 131 (package-install 'debbugs) 132 ;;(package-install 'deft) 133 (package-install 'direnv) 134 (package-install 'dumb-jump) 135 (package-install 'docker) 136 (package-install 'docker-cli) 137 (package-install 'docker-tramp) 138 ;;(package-install 'eglot) 139 (package-install 'mastodon) 140 (package-install 'exec-path-from-shell) 141 (package-install 'expand-region) 142 (package-install 'flymake-php) 143 (package-install 'flycheck) 144 ;;(package-install 'robe) 145 (package-install 'geiser) 146 (package-install 'geiser-guile) 147 (package-install 'guix) 148 (package-install 'git-gutter) 149 (package-install 'gnuplot) 150 ;;(package-install 'swiper) 151 ;;(package-install 'sqlite3) 152 (package-install 'org-roam) 153 (package-install 'org-roam-ui) 154 (package-install 'org-download) 155 (package-install 'org-babel-eval-in-repl) 156 (package-install 'ob-php) 157 (package-install 'lsp-mode) 158 (package-install 'on-screen) 159 ;;(package-install 'nix-mode) 160 (package-install 'pdf-tools) 161 ;;(package-install 'phpactor) 162 ;; (package-install 'company-quickhelp) 163 (package-install 'ac-php) 164 (package-install 'php-mode) 165 (package-install 'php-quickhelp) 166 (package-install 'phan) 167 (package-install 'php-cs-fixer) 168 ;; (package-install 'company-php) 169 (package-install 'php-eldoc) 170 (package-install 'phps-mode) 171 (package-install 'realgud) 172 (package-install 'kiwix) 173 ;;(package-install 'sml-mode) 174 (package-install 'slime) 175 (package-install 'simple-httpd) 176 (package-install 'sudo-edit) 177 (package-install 'treemacs) 178 (package-install 'undo-tree) 179 (package-install 'yasnippet) 180 (package-install 'yasnippet-snippets) 181 (package-install 'vimrc-mode) 182 (package-install 'flymake-phpcs) 183 (package-install 'flymake-phpstan) 184 (package-install 'no-littering) 185 (package-install 'web-mode) 186 (package-install 'which-key) 187 (package-install 'reverse-im) 188 (package-install 'imenu-list) 189 (package-install 'isearch-mb) 190 (package-install 'visual-fill-column) 191 (package-install 'browse-kill-ring) 192 (package-install 'corfu) 193 (package-install 'corfu-doc) 194 (package-install 'inf-ruby) 195 (package-install 'yaml-mode) 196 (package-install 'restclient)))) 108 (when (not package-archive-contents) 109 (progn 110 (package-refresh-contents) 111 (package-install 'avy) 112 ;; (package-install 'anzu) 113 (package-install 'anaconda-mode) 114 (package-install 'auctex) 115 (package-install 'beginend) 116 (package-install 'composer) 117 (package-install 'mini-modeline) 118 (package-install 'cinspect) 119 (package-install 'debian-el) 120 (package-install 'dpkg-dev-el) 121 (package-install 'edebug-inline-result) 122 ;;(package-install 'haskell-mode) 123 ;;(package-install 'idris-mode) 124 (package-install 'magit) 125 (package-install 'git-dwim) 126 (package-install 'gitpatch) 127 (package-install 'goto-chg) 128 (package-install 'debbugs) 129 ;;(package-install 'deft) 130 (package-install 'direnv) 131 (package-install 'dumb-jump) 132 (package-install 'docker) 133 (package-install 'docker-cli) 134 (package-install 'docker-tramp) 135 ;;(package-install 'eglot) 136 (package-install 'mastodon) 137 (package-install 'exec-path-from-shell) 138 (package-install 'expand-region) 139 (package-install 'flymake-php) 140 (package-install 'flycheck) 141 ;;(package-install 'robe) 142 (package-install 'geiser) 143 (package-install 'geiser-guile) 144 (package-install 'guix) 145 (package-install 'git-gutter) 146 (package-install 'gnuplot) 147 ;;(package-install 'swiper) 148 ;;(package-install 'sqlite3) 149 (package-install 'org-roam) 150 (package-install 'org-roam-ui) 151 (package-install 'org-download) 152 (package-install 'org-babel-eval-in-repl) 153 (package-install 'ob-php) 154 (package-install 'lsp-mode) 155 (package-install 'on-screen) 156 ;;(package-install 'nix-mode) 157 (package-install 'pdf-tools) 158 ;;(package-install 'phpactor) 159 ;; (package-install 'company-quickhelp) 160 (package-install 'ac-php) 161 (package-install 'php-mode) 162 (package-install 'php-quickhelp) 163 (package-install 'phan) 164 (package-install 'php-cs-fixer) 165 ;; (package-install 'company-php) 166 (package-install 'php-eldoc) 167 (package-install 'phps-mode) 168 (package-install 'realgud) 169 (package-install 'kiwix) 170 ;;(package-install 'sml-mode) 171 (package-install 'sly) 172 (package-install 'simple-httpd) 173 (package-install 'sudo-edit) 174 (package-install 'treemacs) 175 (package-install 'undo-tree) 176 (package-install 'yasnippet) 177 (package-install 'yasnippet-snippets) 178 (package-install 'vimrc-mode) 179 (package-install 'flymake-phpcs) 180 (package-install 'flymake-phpstan) 181 (package-install 'no-littering) 182 (package-install 'web-mode) 183 (package-install 'which-key) 184 (package-install 'reverse-im) 185 (package-install 'imenu-list) 186 (package-install 'isearch-mb) 187 (package-install 'visual-fill-column) 188 (package-install 'browse-kill-ring) 189 (package-install 'corfu) 190 (package-install 'corfu-doc) 191 (package-install 'inf-ruby) 192 (package-install 'yaml-mode) 193 (package-install 'geben) 194 (package-install 'link-hint) 195 (package-install 'restclient))) 197 196 #+end_src 198 197 … … 941 940 deft-use-filter-string-for-filename t 942 941 deft-default-extension "org md" 943 deft-directory "~/ Documents/Notes")942 deft-directory "~/projects/at-w96k/content/digarden") 944 943 #+end_src 945 944 … … 1329 1328 (when (package-loaded? "org-roam") 1330 1329 (progn 1331 (setq org-roam-directory (file-truename "~/ Documents/Notes")1330 (setq org-roam-directory (file-truename "~/projects/at-w96k/content/digarden/") 1332 1331 org-roam-graph-viewer "icecat" 1333 1332 org-roam-v2-ack t … … 1372 1371 #+begin_src emacs-lisp :tangle init.el 1373 1372 (add-to-list 'org-agenda-files 1374 "~/ Documents/Notes/20210422181951-ежедневная_рутина.org")1373 "~/projects/at-w96k/content/digarden/20210422181951-ежедневная_рутина.org") 1375 1374 (add-to-list 'org-agenda-files 1376 "~/ Documents/Notes/20210409072648-дела.org")1375 "~/projects/at-w96k/content/digarden/20210409072648-дела.org") 1377 1376 #+end_src 1378 1377 … … 1479 1478 1480 1479 *** Переменная PATH в eshell 1481 #+BEGIN_SRC emacs-lisp :tangle nil1480 #+BEGIN_SRC emacs-lisp :tangle init.el 1482 1481 (setq exec-path-from-shell-variables 1483 1482 '("PATH" "MANPATH")) … … 1664 1663 '(1 "_NET_WM_STATE_FULLSCREEN" 0))) 1665 1664 #+end_src 1665 ** Удаление буфера и файла 1666 #+begin_src elisp :tangle init.el 1667 (defun delete-file-and-buffer () 1668 "Kill the current buffer and deletes the file it is visiting." 1669 (interactive) 1670 (let ((filename (buffer-file-name))) 1671 (if filename 1672 (if (y-or-n-p (concat "Do you really want to delete file " filename " ?")) 1673 (progn 1674 (delete-file filename) 1675 (message "Deleted file %s." filename) 1676 (kill-buffer))) 1677 (message "Not a file visiting buffer!")))) 1678 #+end_src
Note:
See TracChangeset
for help on using the changeset viewer.