Changeset 9989e84 in dotfiles
- Timestamp:
- Apr 13, 2020, 7:41:10 PM (5 years ago)
- Branches:
- master
- Children:
- 6f739ce
- Parents:
- 6918e4c
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
cvs/.gitconfig
r6918e4c r9989e84 3 3 [user] 4 4 name = Mikhail Kirillov 5 email = w96k@ member.fsf.org5 email = w96k@posteo.net 6 6 [gpg] 7 7 program = gpg2 -
emacs/.emacs
r6918e4c r9989e84 31 31 (package-install 'use-package)) 32 32 33 ;; (eval-when-compile 34 ;; (require 'use-package)) 35 36 (require 'use-package) 33 (eval-when-compile 34 (require 'use-package)) 37 35 38 36 (use-package use-package-ensure-system-package … … 42 40 :config 43 41 (when (memq window-system '(mac ns x)) 44 (exec-path-from-shell-copy-env "PATH") 45 (exec-path-from-shell-copy-env "PYTHONPATH") 42 (exec-path-from-shell-copy-env "GUILE_LOAD_PATH") 46 43 (exec-path-from-shell-initialize))) 47 44 … … 50 47 51 48 (org-babel-load-file "~/.emacs-config.org") 49 50 (custom-set-faces 51 ;; custom-set-faces was added by Custom. 52 ;; If you edit it by hand, you could mess it up, so be careful. 53 ;; Your init file should contain only one such instance. 54 ;; If there is more than one, they won't work right. 55 '(highlight-indentation-face ((t (:inherit git-gutter+-unchanged))))) 52 56 (custom-set-variables 53 57 ;; custom-set-variables was added by Custom. … … 57 61 '(package-selected-packages 58 62 (quote 59 (keycast org-mime flycheck-lilypond flymd epresent org-journal intero vue-mode js2-mode jinja2-mode elpy mwim yasnippet-snippets column-enforce-mode pos-tip swiper ivy browse-kill-ring git-gutter+ magit-gitflow magit aggressive-indent mood-line color-theme-sanityinc-tomorrow auto-package-update use-package)))) 60 (custom-set-faces 61 ;; custom-set-faces was added by Custom. 62 ;; If you edit it by hand, you could mess it up, so be careful. 63 ;; Your init file should contain only one such instance. 64 ;; If there is more than one, they won't work right. 65 '(highlight-indentation-face ((t (:inherit git-gutter+-unchanged))))) 63 (emojify zzz-to-char yasnippet-snippets vue-mode use-package-ensure-system-package pos-tip org-mime org-journal mwim mood-line magit-gitflow keycast js2-mode jinja2-mode intero git-gutter+ flymd flycheck-lilypond fennel-mode epresent elpy counsel column-enforce-mode color-theme-sanityinc-tomorrow browse-kill-ring auto-package-update aggressive-indent)))) -
emacs/.emacs-config.org
r6918e4c r9989e84 20 20 А также отступа между строк 21 21 #+BEGIN_SRC emacs-lisp 22 ;;; Set font23 (add-to-list 'default-frame-alist '(font . "terminus-10"))24 (set-face-attribute 'default nil :font "-*-terminus-medium-r-*-*-*-125-75-75-*-*-iso8859-15")25 (setq-default line-spacing 0)22 ;;; Set font 23 ;; (add-to-list 'default-frame-alist '(font . "terminus-10")) 24 ;; (set-face-attribute 'default nil :font "-xos4-Terminus-normal-normal-normal-*-16-*-*-*-c-80-iso10646-1") 25 (setq-default line-spacing 0) 26 26 #+END_SRC 27 27 … … 29 29 Вы ее в видите в блоках кода 30 30 #+BEGIN_SRC emacs-lisp 31 ;;; Load a theme32 ;;; https://emacsthemes.com/themes/sanityinc-tomorrow-themes.html33 (use-package color-theme-sanityinc-tomorrow34 :ensure35 :config (load-theme 'sanityinc-tomorrow-eighties t))31 ;;; Load a theme 32 ;;; https://emacsthemes.com/themes/sanityinc-tomorrow-themes.html 33 (use-package color-theme-sanityinc-tomorrow 34 :ensure 35 :config (load-theme 'sanityinc-tomorrow-eighties t)) 36 36 #+END_SRC 37 37 … … 340 340 #+BEGIN_SRC emacs-lisp 341 341 (use-package geiser 342 :after yasnippet) 342 :config 343 (defun geiser-guile--version (binary) 344 "3.0.2")) 343 345 #+END_SRC 344 346 ** Python … … 490 492 ((cljr-add-keybindings-with-prefix "C-c C-m"))) 491 493 #+END_SRC 494 ** Common Lisp 495 *** REPL 496 #+BEGIN_SRC emacs-lisp 497 (use-package slime 498 :config 499 500 (setq slime-contribs '(slime-fancy slime-repl slime-banner))) 501 #+END_SRC 502 ** Fennel 503 #+BEGIN_SRC emacs-lisp 504 (use-package fennel-mode 505 :ensure 506 :config 507 (define-key fennel-mode-map (kbd "C-c C-k") 508 (defun pnh-fennel-hotswap () 509 (interactive) 510 (comint-send-string 511 (inferior-lisp-proc) 512 (format "(lume.hotswap \"%s\")\n" 513 (substring (file-name-nondirectory (buffer-file-name)) 0 -4)))))) 514 #+END_SRC 492 515 * Языки декларирования 493 516 ** SQL … … 680 703 #+BEGIN_SRC emacs-lisp 681 704 ;; Smooth scrolling 682 (setq redisplay-dont-pause t705 (setq redisplay-dont-pause nil 683 706 scroll-margin 10 684 707 scroll-step 1 … … 699 722 #+END_SRC 700 723 ** Системные пакеты 724 *** Guix 725 #+BEGIN_SRC emacs-lisp 726 (use-package guix-autoloads 727 :after geiser 728 :config 729 (setq guix-repl-use-latest t) 730 (setq guix-guile-program "guile")) 731 732 (use-package edit-indirect) 733 (use-package build-farm) 734 (use-package dash) 735 (use-package bui) 736 737 #+END_SRC 701 738 *** Docker 702 739 #+BEGIN_SRC emacs-lisp -
guix-channel/non-gnu/packages/lua-fennel.scm
r6918e4c r9989e84 38 38 (source (assoc-ref %build-inputs "source"))) 39 39 40 (mkdir out) 41 (mkdir (string-append out "/bin")) 42 (call-with-output-file (string-append out "/bin/fennel") 40 (mkdir (string-append source "/bin")) 41 (call-with-output-file (string-append source "/bin/fennel") 43 42 (lambda (port) 44 43 (display "#!/bin/sh\n../fennel" port))) 45 (invoke (string-append coreutils "/bin/chmod") "+x" (string-append out "/bin/fennel"))44 ;;(invoke (string-append coreutils "/bin/chmod") "+x" (string-append out "/bin/fennel")) 46 45 ;;(invoke (string-append make "/bin/make") "-C" out) 46 (mkdir out) 47 47 (copy-recursively source out))))) 48 48 (synopsis "Lua Lisp Language.") -
guix/.bash_profile
r6918e4c r9989e84 21 21 export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI mode 22 22 23 export GUIX_PROFILE="/home/w96k/.guix-profile" 24 . "$GUIX_PROFILE/etc/profile" 23 export GUIX_PROFILE="$HOME/.guix-profile" 24 . "$GUIX_PROFILE/etc/profile" 25 26 #source "$HOME/.guix-profile/etc/profile" 27 #source "$HOME/.config/guix/current/etc/profile" 25 28 26 29 streaming() { … … 92 95 93 96 94 if [ "$(tty)" = "/dev/tty1" ]; then97 #if [ "$(tty)" = "/dev/tty1" ]; then 95 98 #herd start && 96 exec sway97 fi99 # exec sway 100 #fi 98 101 99 102 if [ -f .bashrc ] -
guix/.config/guix/channels.scm
r6918e4c r9989e84 14 14 (branch "master")) 15 15 16 (channel17 (name 'nonguix)18 (url "https://gitlab.com/nonguix/nonguix"))16 ;; (channel 17 ;; (name 'nonguix) 18 ;; (url "https://gitlab.com/nonguix/nonguix")) 19 19 20 20 ;; (channel -
guix/.config/i3blocks/config
r6918e4c r9989e84 1 1 # Optimized for 1280x800 resolution 2 2 # on thinkpad x200t 3 4 [title]5 full_text=<placeholder for pressed keybind>6 align=center7 min_width=6008 3 9 4 [cpu] -
guix/.config/nixpkgs/config.nix
r6918e4c r9989e84 1 1 { 2 2 allowUnfree = true; 3 4 boot.kernel.sysctl."vm.overcommit_memory" = "1";5 3 } -
guix/.config/rofi/config.rasi
r6918e4c r9989e84 70 70 /* display-combi: ;*/ 71 71 /* display-keys: ;*/ 72 /* kb-primary-paste: "Control+V,Shift+Insert";*/ 72 kb-primary-paste: "Control+V,Shift+Insert,Control+y"; 73 73 /* kb-secondary-paste: "Control+v,Insert";*/ 74 74 /* kb-clear-line: "Control+w";*/ -
guix/.config/sway/config
r6918e4c r9989e84 15 15 set $right l 16 16 17 set $term urxvt17 set $term wterm 18 18 19 19 bindsym $mod+d exec --no-startup-id "rofi -show drun -run-shell-command '{terminal} -e \\" {cmd}; read -n 1 -s\\"'" … … 221 221 # Launch emacs 222 222 e exec emacsclient; workspace "Editor"; mode default; 223 shift+e exec emacs; workspace "Editor"; mode default; 223 224 shift+e exec "if ps auxf | grep -c emacs > 1; then swaymsg '[class=Emacs] focus'; else swaymsg exec 'emacs'; fi; swaymsg 'mode default'"; 224 225 225 226 # Launch terminal … … 279 280 bindsym --to-code $StumpMod mode "stumpwm" 280 281 281 mode "stumpwm-control" { 282 283 } 282 bindsym --to-code $mod+n exec --no-startup-id "rofi -show window" 284 283 285 284 bindsym $mod+g mode "default" -
guix/.zprofile
r6918e4c r9989e84 36 36 } 37 37 38 GUIX_PROFILE="/home/w96k/.config/guix/current" 39 . "$GUIX_PROFILE/etc/profile" 40 41 42 export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale 43 44 # Add npm to PATH 45 export PATH="$PATH:$HOME/.nodejs/bin/" 46 47 # Add .bin to PATH 48 export PATH="~$PATH:/.bin/" 49 50 export PATH="$PATH:$HOME/.local/bin/" 51 export PATH="$PATH:$HOME/usr/local/bin/" 52 53 # Add ruby gems to PATH 54 export PATH=$PATH:/home/w96k/.gem/ 55 export PATH=$PATH:/home/w96k/.gem/ruby/2.5.0/bin/ 56 57 export PATH=$HOME/.config/guix/current/bin:$PATH 58 59 #sh export GDK_CORE_DEVICE_EVENTS=1 60 61 export ALTERNATE_EDITOR="" 62 export EDITOR="emacsclient -t" # $EDITOR opens in terminal 63 export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI mode 64 65 #[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \ 66 # . /usr/share/bash-completion/bash_completion 67 68 # Colored ls 69 export LS_OPTIONS='--color=auto' 70 eval "`dircolors`" 71 alias ls='ls $LS_OPTIONS' 72 73 alias python='python3' 74 75 if [ -f .zshrc ] 76 then 77 . ~/.zshrc 78 fi 79 80 38 81 if [ "$(tty)" = "/dev/tty1" ]; then 39 82 tor & 40 83 exec sway 41 84 fi 42 43 if [ -f .zshrc ]44 then45 . .zshrc46 fi -
guix/.zshenv
r6918e4c r9989e84 1 # Add guix path2 export GUIX_PROFILE="$HOME/.guix-profile" ; \3 source "$HOME/.guix-profile/etc/profile"4 5 export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale6 7 # Add npm to PATH8 export PATH="$PATH:~/.nodejs/bin/"9 10 # Add .bin to PATH11 export PATH="~$PATH:/.bin/"12 13 export PATH="$PATH:~/.local/bin/"14 export PATH="$PATH:~/usr/local/bin/"15 16 # Add ruby gems to PATH17 export PATH=$PATH:/home/w96k/.gem/18 export PATH=$PATH:/home/w96k/.gem/ruby/2.5.0/bin/19 20 #sh export GDK_CORE_DEVICE_EVENTS=121 22 export ALTERNATE_EDITOR=""23 export EDITOR="emacsclient -t" # $EDITOR opens in terminal24 export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI mode25 26 #[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \27 # . /usr/share/bash-completion/bash_completion28 29 # Colored ls30 export LS_OPTIONS='--color=auto'31 eval "`dircolors`"32 alias ls='ls $LS_OPTIONS'33 34 alias python='python3' -
guix/.zshrc
r6918e4c r9989e84 13 13 compinit 14 14 _comp_options+=(globdots) # Include hidden files. 15 16 #source /run/current-system/profile/etc/profile.d/nix.sh -
guix/config.scm
r6918e4c r9989e84 7 7 ;; https://w96k.ru 8 8 9 (use-modules (gnu) (gnu system nss) 9 (use-modules (gnu) (gnu system nss) 10 (guix build emacs-utils) 10 11 (srfi srfi-1)) 11 12 … … 46 47 ;; (libvirt-configuration 47 48 ;; (unix-sock-group "libvirt"))) 48 ;;x11-socket-directory-service49 49 50 50 (service nix-service-type) … … 57 57 58 58 ;;(postgresql-service #:extension-packages (list postgis)) 59 (service docker-service-type)59 ;;(service docker-service-type) 60 60 (service alsa-service-type) 61 61 62 62 (service tor-service-type) 63 63 64 (service cleanup-service-type #t)64 ;;(service cleanup-service-type #t) 65 65 ;; Fix unavailable /usr/bin/env 66 66 ;; It's needed by many shell scripts 67 67 (extra-special-file "/usr/bin/env" 68 68 (file-append coreutils "/bin/env")) 69 (extra-special-file "/bin/bash"70 (file-append bash "/bin/bash"))71 69 (extra-special-file "/bin/zsh" 72 70 (file-append zsh "/bin/zsh")) … … 74 72 (file-append python "/bin/python")) 75 73 76 (service rottlog-service-type)74 ;;(service rottlog-service-type) 77 75 ;;%powertop-service 78 76 … … 82 80 (service dbus-root-service-type) 83 81 polkit-wheel-service 84 fontconfig-file-system-service82 ;;fontconfig-file-system-service 85 83 (service elogind-service-type) 86 (simple-service 'network-manager-applet 87 profile-service-type 88 (list network-manager-applet)) 89 %base-services)) 84 ;; (simple-service 'network-manager-applet 85 ;; profile-service-type 86 ;; (list network-manager-applet)) 87 88 (modify-services %base-services 89 (guix-service-type config => 90 (guix-configuration (inherit config) 91 (substitute-urls '("http://ci.guix.gnu.org" 92 "https://berlin.guixsd.org"))))))) 90 93 91 94 ;; Remove gdm (gdm is default in guix) … … 210 213 211 214 "intremap=off" ; Fix for failed to map dmar2 215 216 "logo.nologo" 217 "loglevel=4" 212 218 213 219 ;;"intel_iommu=on" … … 229 235 (supplementary-groups '("wheel" "netdev" 230 236 "audio" "video" 231 "kvm" "docker"237 "kvm" ;;"docker" 232 238 )) 233 (shell (file-append zsh "/bin/zsh"))239 ;;(shell (file-append zsh "/bin/zsh")) 234 240 (home-directory "/home/w96k")) 235 241 %base-user-accounts)) … … 237 243 (append 238 244 %emacs 245 %base-packages 239 246 (map specification->package 240 247 '( 241 "bash"242 "bash-completion"248 ;; "bash" 249 ;; "bash-completion" 243 250 "zsh" 244 251 "zsh-autosuggestions" … … 254 261 "gcc-toolchain" 255 262 "make" 256 "glibc"257 263 "stow" 258 264 "icecat" … … 295 301 "bundler" 296 302 "sbcl" 297 "docker"298 "docker-cli"303 ;;"docker" 304 ;;"docker-cli" 299 305 "nix" 300 306 "postgresql" … … 323 329 "adwaita-icon-theme" 324 330 ;;"font-awesome" 325 "dbus"326 331 "p7zip" 327 332 "glibc-utf8-locales" 328 "gvfs"))329 %base-packages))333 ;;"gvfs" 334 )))) 330 335 331 336 (services %my-services) -
guix/server.scm
r6918e4c r9989e84 74 74 (postgresql-service #:extension-packages (list postgis)) 75 75 (service openssh-service-type) 76 ;; (service dhcpd-service-type77 ;; (dhcpd-configuration78 ;; (interfaces '("enp0s25"))))76 ;; (service dhcpd-service-type 77 ;; (dhcpd-configuration 78 ;; (interfaces '("enp0s25")))) 79 79 80 ;; (service dhcp-client-service-type)81 (service zabbix-server-service-type)80 ;; (service dhcp-client-service-type) 81 ;;(service zabbix-server-service-type) 82 82 %base-services)) 83 83 -
wm/.stumpwmrc
r6918e4c r9989e84 10 10 11 11 (set-module-dir "~/stumpwm/contrib") 12 (ql:quickload :clx-truetype)12 ;;(ql:quickload :clx-truetype) 13 13 14 14 (load-module "battery-portable") … … 22 22 ;;(load-module "ttf-fonts") 23 23 24 (clx-truetype:cache-fonts)24 ;;(clx-truetype:cache-fonts) 25 25 26 26 (print *time-modeline-string*)
Note:
See TracChangeset
for help on using the changeset viewer.