Changeset 6cbb9a9 in dotfiles
- Timestamp:
- Nov 18, 2020, 8:39:02 PM (4 years ago)
- Branches:
- master
- Children:
- c1c560a
- Parents:
- d2872a5
- git-author:
- Mikhail Kirillov <w96k@…> (11/18/20 19:54:38)
- git-committer:
- Mikhail Kirillov <w96k@…> (11/18/20 20:39:02)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
emacs/.emacs.d/.emacs-config.org
rd2872a5 r6cbb9a9 134 134 ** Эмодзи (для telega.el) 135 135 #+BEGIN_SRC emacs-lisp 136 136 (use-package emojify) 137 137 #+END_SRC 138 138 139 ** Иконки (all the icons) 140 #+BEGIN_SRC emacs-lisp 141 (use-package all-the-icons-dired 142 :diminish 143 :init 144 (add-hook 'dired-mode-hook 'all-the-icons-dired-mode)) 145 146 ;; (use-package all-the-icons-ivy-rich 147 ;; :ensure t 148 ;; :diminish 149 ;; :init (all-the-icons-ivy-rich-mode 1)) 150 #+END_SRC 139 151 * Редактирование кода в общем 140 152 ** Файловый менеджер … … 144 156 :hook (dired-mode . dired-hide-dotfiles-mode)) 145 157 146 158 (require 'dired) 147 159 (setq dired-async-mode t) 148 160 … … 150 162 151 163 ;; Show files in kilobytes 152 164 (setq dired-listing-switches "-alh") 153 165 154 166 (defun xah-dired-sort () … … 176 188 ;; :hook (prog-mode . flymake-mode)) 177 189 178 (use-package flycheck 179 180 :bind (("C-c e" . flycheck-list-errors)) 181 :config 182 (setq-default left-fringe-width 8 right-fringe-width 8 183 flycheck-indication-mode 'right-margin 184 left-margin-width 1 right-margin-width 0) 185 (add-hook 'flycheck-mode-hook #'flycheck-set-indication-mode) 186 (global-flycheck-mode)) 190 (use-package flycheck 191 192 :bind (("C-c e" . flycheck-list-errors)) 193 :config 194 (setq-default left-fringe-width 8 right-fringe-width 8 195 flycheck-indication-mode 'right-margin 196 left-margin-width 1 right-margin-width 0) 197 (add-hook 'flycheck-mode-hook #'flycheck-set-indication-mode) 198 (global-flycheck-mode)) 199 200 (use-package flycheck-elsa 201 :ensure 202 :hook 203 (emacs-lisp-mode . flycheck-elsa-setup)) 187 204 #+END_SRC 188 205 ** Дерево отмен 189 206 #+BEGIN_SRC emacs-lisp 190 207 ;;; Undo system 191 192 193 208 (use-package undo-tree 209 :diminish 210 :config (global-undo-tree-mode)) 194 211 #+END_SRC 195 212 … … 202 219 :bind (("C-x C-d" . treemacs))) 203 220 204 205 221 (use-package treemacs-projectile 222 :ensure) 206 223 #+END_SRC 207 224 ** Автоформатирование 208 225 #+BEGIN_SRC emacs-lisp 209 226 ;;; Autoformatting code 210 (use-package aggressive-indent 211 :ensure t 212 :config (global-aggressive-indent-mode)) 227 (use-package aggressive-indent 228 :ensure t 229 ;;:config (global-aggressive-indent-mode) 230 ) 213 231 #+END_SRC 214 232 ** SSH … … 303 321 (ivy-mode 1)) 304 322 323 324 ;; Workaround for slowness of ivy rich 325 (defvar ivy-rich--ivy-switch-buffer-cache 326 (make-hash-table :test 'equal)) 327 328 (define-advice ivy-rich--ivy-switch-buffer-transformer 329 (:around (old-fn x) cache) 330 (let ((ret (gethash x ivy-rich--ivy-switch-buffer-cache))) 331 (unless ret 332 (setq ret (funcall old-fn x)) 333 (puthash x ret ivy-rich--ivy-switch-buffer-cache)) 334 ret)) 335 336 (define-advice +ivy/switch-buffer 337 (:before (&rest _) ivy-rich-reset-cache) 338 (clrhash ivy-rich--ivy-switch-buffer-cache)) 339 340 ;; Icons in ivy 341 (defun ivy-rich-switch-buffer-icon (candidate) 342 (with-current-buffer 343 (get-buffer candidate) 344 (let ((icon (all-the-icons-icon-for-mode major-mode))) 345 (if (symbolp icon) 346 (all-the-icons-icon-for-mode 'fundamental-mode) 347 icon)))) 348 305 349 (use-package ivy-rich 306 350 :config 307 (ivy-rich-mode)) 351 (ivy-rich-mode) 352 (setcdr (assq t ivy-format-functions-alist) #'ivy-format-function-line) 353 (setq ivy-rich-display-transformers-list 354 '(ivy-switch-buffer 355 (:columns 356 ( 357 (ivy-rich-switch-buffer-icon (:width 2)) 358 (ivy-rich-candidate (:width 30)) 359 (ivy-rich-switch-buffer-major-mode (:width 12 :face warning)) 360 (ivy-rich-switch-buffer-project (:width 15 :face success)) 361 (ivy-rich-switch-buffer-path (:width (lambda (x) (ivy-rich-switch-buffer-shorten-path x (ivy-rich-minibuffer-width 0.3)))))) 362 :predicate 363 (lambda (cand) (get-buffer cand)))))) 308 364 #+END_SRC 309 365 ** Автодополнение … … 747 803 (substitute-key-definition 'kill-buffer 'kill-buffer-and-window global-map) 748 804 #+END_SRC 749 *** Аутлайн для лиспа на основе уровней комментов750 #+BEGIN_SRC emacs-lisp751 (use-package outshine752 :diminish753 :hook (emacs-lisp-mode-hook . outshine-mode))754 #+END_SRC755 805 *** nobreak символы 756 806 #+BEGIN_SRC emacs-lisp -
emacs/.gnus
rd2872a5 r6cbb9a9 7 7 '(nnimap "posteo" 8 8 (nnimap-address "posteo.de") 9 9 (nnimap-server-port "imaps") 10 10 (nnimap-stream ssl))) 11 12 (add-to-list 'gnus-secondary-select-methods '(nntp "news.gmane.io")) 11 13 12 14 (setq smtpmail-smtp-server "posteo.de" -
guix/config.scm
rd2872a5 r6cbb9a9 19 19 linux 20 20 python 21 gawk 21 22 xdisorg) 22 23 … … 50 51 51 52 "vblank_mode=0" 53 52 54 55 "vm.swappiness=5" 56 53 57 "thinkpad_acpi.fan_control=1" 54 55 ;;"cpufreq.default_governor="56 58 57 59 ;;"ahci.mobile_lpm_policy=1" … … 99 101 "font-fira-code" 100 102 "font-fira-mono" 103 "font-jetbrains-mono" 101 104 "sbcl" 102 105 "intel-vaapi-driver" … … 144 147 (service special-files-service-type 145 148 `(("/bin/bash" ,(file-append bash "/bin/bash")) 146 ("/bin/python" ,(file-append python "/bin/python3")))) 149 ("/bin/python" ,(file-append python "/bin/python3")) 150 ("/bin/awk" ,(file-append gawk "/usr/bin/awk")))) 147 151 148 152 (service nix-service-type) -
guix/user.scm
rd2872a5 r6cbb9a9 2 2 '( 3 3 ;; Programming languages 4 ;;"julia"5 ;;"bigloo" 4 "julia" 5 ;;"bigloo" ;; Doesn't compile 6 6 "chibi-scheme" 7 7 "perl" … … 18 18 "polyml" 19 19 "vala" 20 "erlang" 21 "elixir" 22 "fpc" 23 "p2c" 24 20 25 21 26 … … 39 44 40 45 "alsa-utils" 41 ;;"ardour" 42 ;;"audacity" ;; Long to compile46 ;;"ardour" ;; Long to compile 47 "audacity" ;; Long to compile 43 48 "bash" 44 49 "bashtop" … … 51 56 "cpufrequtils" 52 57 "cpupower" 58 "perf" 53 59 "powertop" 54 60 "curl" … … 56 62 "djview" 57 63 "djvulibre" 64 "dmidecode" 58 65 "exercism" 59 66 "mg" ; Emacs-like … … 64 71 "emacs-ace-jump-mode" 65 72 "emacs-all-the-icons" 73 "emacs-all-the-icons-dired" 66 74 "emacs-avy" 67 75 "emacs-bui" … … 82 90 "emacs-dumb-jump" 83 91 "emacs-edit-indirect" 92 "emacs-elixir-mode" 84 93 "emacs-editorconfig" 85 94 "emacs-elpy" 95 "emacs-erlang" 96 "emacs-ob-erlang" 86 97 "emacs-emacsql" 87 98 "emacs-emojify" … … 179 190 "hicolor-icon-theme" 180 191 "gnome-themes-extra" 181 "htop" 192 "htop" ;; Not really needed, because I mostly use top 182 193 "pkg-config" 183 194 "gobject-introspection" 184 195 "icecat" 185 196 "imagemagick" 197 "inkscape" 186 198 "libreoffice" 187 199 "llvm" … … 204 216 "node" 205 217 "nss-certs" 206 ;;"nyxt"218 "nyxt" 207 219 "openjdk" 208 220 "openssh" … … 240 252 "st" 241 253 "stow" 254 "sysstat" 242 255 "tcl" 243 256 "tdlib" … … 285 298 "minetest" 286 299 "minetest-mineclone" 287 ;;"cataclysm-dda:tiles" ;; Long to rebuild every time300 "cataclysm-dda:tiles" ;; Long to rebuild every time 288 301 ))
Note:
See TracChangeset
for help on using the changeset viewer.