Changeset cc8263e in dotfiles


Ignore:
Timestamp:
Sep 1, 2020, 5:33:00 PM (4 years ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
f7fb9ae
Parents:
b7234fa
git-author:
Mikhail Kirillov <w96k@…> (08/07/20 14:33:08)
git-committer:
Mikhail Kirillov <w96k@…> (09/01/20 17:33:00)
Message:

Update guix config

Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • README

    rb7234fa rcc8263e  
    1111
    1212** Emacs
    13 [[emacs.png]]
     13   [[emacs.png]]
    1414
    1515*** My setup
  • emacs/.emacs

    rb7234fa rcc8263e  
    5757  :config
    5858  (when (memq window-system '(mac ns x))
    59     (exec-path-from-shell-copy-env "GUILE_LOAD_PATH")
     59    (exec-path-from-shell-copy-env "PYTHONPATH")
    6060    (exec-path-from-shell-initialize)))
    6161
  • emacs/.emacs-config.org

    rb7234fa rcc8263e  
    6565   #+END_SRC
    6666
    67 * Редактирование кода в общем
     67* Редактирование кода в общемsss
    6868** Файловый менеджер
    6969   #+BEGIN_SRC emacs-lisp
     
    314314        (use-package lsp-mode
    315315         :hook  (scala-mode . lsp)
    316                 (python-mode . lsp)
     316                ;;(python-mode . lsp)
    317317                (lsp-mode . lsp-enable-which-key-integration)
    318318                (lsp-mode . lsp-lens-mode)
     
    322322           :config (push 'company-lsp company-backends))
    323323
    324         ;;(use-package lsp-metals)
     324        (use-package lsp-metals :ensure)
    325325
    326326        (use-package lsp-ui)
     
    371371*** Elpy
    372372    #+BEGIN_SRC emacs-lisp
    373   ;; (use-package elpy
    374   ;;   :ensure t
    375   ;;   :init
    376   ;;   (elpy-enable)
    377   ;;   :config
    378   ;;   (setq elpy-rpc-python-command "python3"
    379   ;;    python-shell-interpreter "python3"
    380   ;;    ;;python-shell-interpreter "ipython" elpy-modules
    381   ;;    elpy-rpc-virtualenv-path 'current
    382   ;;    pyvenv-mode-line-indicator t )
    383   ;;   :bind
    384   ;;   ("C-c p" . elpy-autopep8-fix-code)
    385   ;;   ("C-c b" . elpy-black-fix-code))
     373      (use-package elpy
     374        :hook ((elpy-mode . flycheck-mode)
     375           (elpy-mode . (lambda ()
     376                          (set (make-local-variable 'company-backends)
     377                               '((elpy-company-backend :with company-yasnippet))))))
     378        :init
     379        (elpy-enable)
     380        :config
     381        (setq elpy-rpc-python-command "python3"
     382              python-shell-interpreter "python3"
     383              ;;python-shell-interpreter "ipython" elpy-modules
     384              elpy-rpc-virtualenv-path 'current
     385              elpy-modules (delq 'elpy-module-flymake elpy-modules)
     386              pyvenv-mode-line-indicator t )
     387        (add-hook 'elpy-mode-hook 'flycheck-mode)
     388        :bind
     389        (:map elpy-mode-map
     390        ("C-c p" . elpy-autopep8-fix-code)
     391        ("C-c b" . elpy-black-fix-code)
     392        ("C-M-n" . elpy-nav-forward-block)
     393        ("C-M-p" . elpy-nav-backward-block)))
    386394    #+END_SRC
    387395*** Anaconda
     
    412420  :config (setq pydoc-command "python3 -m pydoc"))
    413421    #+END_SRC
     422
    414423** Javascript
    415424*** Основной мод
     
    759768  :hook (emacs-lisp-mode-hook . outshine-mode))
    760769    #+END_SRC
     770*** nobreak символы
     771    #+BEGIN_SRC emacs-lisp
     772      (setq nobreak-char-display nil)
     773    #+END_SRC
     774** Guix
     775   #+BEGIN_SRC emacs-lisp
     776     (use-package guix
     777       :config
     778       (add-hook 'after-init-hook 'global-guix-prettify-mode))
     779   #+END_SRC
    761780** Полный экран
    762781   #+BEGIN_SRC emacs-lisp
     
    872891** Обнаруживать просадки
    873892   #+BEGIN_SRC emacs-lisp
    874      ;; (use-package explain-pause-mode
    875      ;;   :quelpa (explain-pause-mode :fetcher github :repo "lastquestion/explain-pause-mode")
    876      ;;   :diminish
    877      ;;   :config (setq explain-pause-blocking-too-long-ms 200)
    878      ;;           (explain-pause-mode))
    879    #+END_SRC
     893     (use-package explain-pause-mode
     894       :quelpa (explain-pause-mode :fetcher github :repo "lastquestion/explain-pause-mode")
     895       :diminish
     896       :config (setq explain-pause-blocking-too-long-ms 200)
     897                       (explain-pause-mode))
     898   #+END_SRC
  • guix/.bash_profile

    rb7234fa rcc8263e  
    1 export PATH=$PATH:~/.bin
     1export PATH=$PATH:~/.bin:~/.local/bin
     2
     3alias python=python3
     4
     5# THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
     6export SDKMAN_DIR="/home/w96k/.sdkman"
     7[[ -s "/home/w96k/.sdkman/bin/sdkman-init.sh" ]] && source "/home/w96k/.sdkman/bin/sdkman-init.sh"
     8
     9# Python Env
     10export PATH="/home/w96k/.pyenv/bin:$PATH"
     11eval "$(pyenv init -)"
     12eval "$(pyenv virtualenv-init -)"
    213
    314# Honor per-interactive-shell startup file
    415if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
     16if [ -e /home/w96k/.nix-profile/etc/profile.d/nix.sh ]; then . /home/w96k/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
  • guix/.bashrc

    rb7234fa rcc8263e  
    2323if [ -n "$GUIX_ENVIRONMENT" ]
    2424then
    25     export PS1="\w [env] \$"
     25    export PS1="\w [env]\$ "
    2626else
    2727    export PS1="\[$(tput bold; tput setaf 3;)\]\w \$ \[$(tput sgr0)\]"
     
    3333# Welcome message
    3434printf "Welcome to bash shell\n\n"
    35 
    36 alias python=python3
    37 
    38 # THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
    39 export SDKMAN_DIR="/home/w96k/.sdkman"
    40 [[ -s "/home/w96k/.sdkman/bin/sdkman-init.sh" ]] && source "/home/w96k/.sdkman/bin/sdkman-init.sh"
  • guix/.zshenv

    rb7234fa rcc8263e  
     1if [ -e /home/w96k/.nix-profile/etc/profile.d/nix.sh ]; then . /home/w96k/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
  • guix/config.scm

    rb7234fa rcc8263e  
    77 ssh
    88 xorg
     9 virtualization
    910 nix)
    1011
     
    2122     "caps:ctrl_modifier"
    2223     )))
    23  (kernel linux-libre)
     24 (kernel linux-libre-5.8)
    2425 (kernel-arguments
    2526  '("processor.max_cstate=1"  ; Disable power savings
     
    4647    (home-directory "/home/w96k")
    4748    (supplementary-groups
    48      '("wheel" "netdev" "audio" "video" "nixbld")))
     49     '("wheel" "netdev" "audio" "video")))
    4950   %base-user-accounts))
    5051 (packages
     
    6364      "font-fira-mono"
    6465      "sbcl"
    65       "nix"
    6666      "stumpwm"))
    6767   (list `(,stumpwm "lib"))
  • wm/.stumpwmrc

    rb7234fa rcc8263e  
    6464
    6565(defcommand icecat () ()
     66            (run-or-raise "icecat" '(:class "IceCat")))
     67
     68(defcommand nyxt () ()
    6669            "Start Next or switch to it, if it is already running."
    67             (run-or-raise "icecat" '(:class "IceCat")))
    68 (define-key *root-map* (kbd "b") "icecat")
     70            (run-or-raise "nyxt" '(:class "nyxt")))
     71           
     72(define-key *root-map* (kbd "b") "nyxt")
    6973
    7074;; launch terminal
Note: See TracChangeset for help on using the changeset viewer.