This commit is contained in:
Valentin Boettcher 2018-03-20 10:48:00 +01:00
parent 9335314777
commit 6dd46cfb62
2 changed files with 26 additions and 1 deletions

View file

@ -3,6 +3,7 @@
(scroll-bar-mode -1)
(menu-bar-mode -1)
(tool-bar-mode -1)
(blink-cursor-mode 0)
(server-start)
;;; Backup
@ -31,7 +32,7 @@
("8db4b03b9ae654d4a57804286eb3e332725c84d7cdab38463cb6b97d5762ad26" "065efdd71e6d1502877fd5621b984cded01717930639ded0e569e1724d058af8" default)))
'(package-selected-packages
(quote
(rust-mode restart-emacs nix-mode json-mode multiple-cursors swiper ivy xresources-theme powerline))))
(auctex magit php-mode php+-mode flycheck-rust avy-flycheck company racer cargo rust-mode restart-emacs nix-mode json-mode multiple-cursors swiper ivy xresources-theme powerline))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
@ -58,6 +59,21 @@
(setq enable-recursive-minibuffers t)
(global-set-key "\C-s" 'swiper)
;;;; Rust
(add-hook 'rust-mode-hook 'cargo-minor-mode)
(add-hook 'rust-mode-hook
(lambda ()
(local-set-key (kbd "C-c <tab>") #'rust-format-buffer)))
;;;;; Racer
(setq racer-cmd "racer") ;; Rustup binaries PATH
(setq racer-rust-src-path "~/Documents/Projects/Rust") ;; Rust source code PATH
(add-hook 'rust-mode-hook #'racer-mode)
(add-hook 'racer-mode-hook #'eldoc-mode)
(add-hook 'racer-mode-hook #'company-mode)
(add-hook 'flycheck-mode-hook #'flycheck-rust-setup)
;;; Ricing
;;(require 'xresources-theme)
(load-theme 'solarized t)

View file

@ -57,6 +57,15 @@ interval = 10
device = "{{ BATTERY }}"
{{ /BATTERY }}
[[block]]
block = "toggle"
text = "NEO"
command_state = "setxkbmap -query | grep neo"
command_on = "setxkbmap de -variant neo"
command_off = "setxkbmap us"
interval = 5
[[block]]
block = "time"
interval = 60