Compare commits

...

8 Commits

Author SHA1 Message Date
an 9b621b391e Merge branch 'master' of git.greyserv.net:marrub/scripts
# Conflicts:
#	emacs/init.el
2020-08-02 12:00:10 -06:00
an fa73b53992 fish: ensure ruby is installed for greeting 2020-08-02 11:56:00 -06:00
an 9fcf97a49f emacs: use mmm-mode, add rust-doc group 2020-08-02 11:55:46 -06:00
an 942851459c emacs: use ninja-mode 2020-08-02 11:55:21 -06:00
an 15765bbedc emacs: don't use variable-pitch-mode anymore 2020-08-02 11:55:14 -06:00
an 9c828bf3d1 mpv: use sub-auto=fuzzy 2020-08-02 11:54:36 -06:00
an 6e191e2cd6 update lutris 2020-08-02 11:54:21 -06:00
an 0679b68e61 use iosevka instead of dina and tewi 2020-08-02 11:54:12 -06:00
6 changed files with 41 additions and 28 deletions

View File

@ -19,9 +19,9 @@ scrolling:
font:
normal:
family: Dina
family: Iosevka
style: Regular
size: 10.0
size: 12.0
offset:
x: 0
y: 0

View File

@ -1,3 +1,4 @@
save-position-on-quit
resume-playback
msg-level=all=warn
sub-auto=fuzzy

View File

@ -30,20 +30,20 @@
(set-face-attribute 'default nil :family "Courier Prime Code"
:height 120 :weight 'normal :width 'normal)
(set-face-attribute 'variable-pitch nil :family "Source Sans Pro"
:height 120 :weight 'normal :width 'normal)
(copy-face 'default 'fixed-pitch)
(copy-face 'default 'mode-line)
;; fontset usage
(dolist (range '((#x2310 . #x26bf)
(#x26c0 . #x329f)
(#x1f000 . #x1fa9f)))
(set-fontset-font t range "Noto Color Emoji"))
(set-fontset-font t '(#x2e80 . #x9fff) "Noto Sans CJK JP")
(setq agw-mode-line-family
(if (string-equal system-type "windows-nt")
"Noto Mono"
"tewi2a"))
;; font alternatives
(setq face-font-family-alternatives
'(("Courier Prime Code" "Noto Mono")
("Source Sans Pro" "Noto Sans" "Noto Sans CJK JP" "Noto Color Emoji")))
"Iosevka"))
;; EOF

View File

@ -86,8 +86,8 @@
header-line
header-line-highlight))
(set-face-attribute face nil
:height 120
:family agw-mode-line-family
:height 90
:weight 'normal
:width 'normal))
(set-face-attribute 'mode-line nil
@ -95,6 +95,26 @@
:foreground "#92ebf0"))
;; major modes
(use-package mmm-mode
:ensure t
:init
(setq mmm-submode-decoration-level 0)
:config
(require 'mmm-auto)
(mmm-add-group 'rust-doc
'((rust-doc-line
:submode markdown-mode
:face mmm-comment-submode-face
:front "///\s+"
:back "\n")
(rust-doc-block
:submode markdown-mode
:face mmm-comment-submode-face
:front "/\\*\\*"
:back "\\*\\*/")))
(mmm-add-mode-ext-class 'ruby-mode nil 'here-doc)
(mmm-add-mode-ext-class 'rust-mode nil 'rust-doc))
(use-package cc-mode
:mode (("\\.zsc\\'" . c-mode)
("\\.zc\\'" . c-mode))
@ -119,20 +139,24 @@
:hook ((markdown-mode . flyspell-mode))
:mode (("\\.mdwn\\'" . markdown-mode)))
(use-package ninja-mode
:ensure t)
(use-package ruby-mode
:hook ((ruby-mode . mmm-mode))
:init
(defvaralias 'ruby-indent-level 'tab-width)
(setq ruby-insert-encoding-magic-comment nil))
(use-package rust-mode
:ensure t
:hook ((rust-mode . mmm-mode))
:init
(defvaralias 'rust-indent-offset 'tab-width))
;; org-mode
(use-package org
:hook ((org-mode . variable-pitch-mode)
(org-mode . flyspell-mode)
:hook ((org-mode . flyspell-mode)
(org-mode . agw-org-mode))
:init
(setq org-fontify-whole-heading-line t
@ -153,18 +177,6 @@
(file . find-file)
(wl . wl)))
:config
(dolist (face '(org-block
org-block-begin-line
org-block-end-line
org-checkbox
org-code
org-date
org-document-info-keyword
org-table
org-verbatim
org-special-keyword
org-drawer))
(set-face-attribute face nil :inherit 'fixed-pitch))
(set-face-attribute
'org-document-title nil
:foreground "#aa573c"

View File

@ -19,7 +19,7 @@ function fish_right_prompt
end
function fish_greeting
if test -f /usr/share/dict/words && test (which shuf)
if test -f /usr/share/dict/words && test (which shuf) && test (which ruby)
set_color c50ed2
echo -n "Word of the moment: "(shuf -n1 /usr/share/dict/words) |

View File

@ -1,5 +1,5 @@
[lutris]
migration_version = 6
migration_version = 8
dont-support-lutris = True
width = 948
height = 593