From 2baf1685851f9e9ac7e48926d1fcc9ada7a75e1e Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Thu, 18 Feb 2021 01:19:52 +0300 Subject: [PATCH] amfora: update config to 1.8.0 --- home/.config/amfora/config.toml | 68 +++++++++++++++++++++++++++++++++ home/.config/doom/config.el | 4 +- home/.config/doom/exwm.el | 15 +++++--- home/.config/doom/init.el | 1 + 4 files changed, 80 insertions(+), 8 deletions(-) diff --git a/home/.config/amfora/config.toml b/home/.config/amfora/config.toml index 44f34de..b6796bc 100644 --- a/home/.config/amfora/config.toml +++ b/home/.config/amfora/config.toml @@ -112,6 +112,74 @@ shift_numbers = "!@#$%^&*()" other = 'off' +# [[mediatype-handlers]] section +# --------------------------------- +# +# Specify what applications will open certain media types. +# By default your default application will be used to open the file when you select "Open". +# You only need to configure this section if you want to override your default application, +# or do special things like streaming. +# +# Note the use of single quotes for commands, so that backslashes will not be escaped. +# +# +# To open jpeg files with the feh command: +# +# [[mediatype-handlers]] +# cmd = ['feh'] +# types = ["image/jpeg"] +# +# Each command that you specify must come under its own [[mediatype-handlers]]. You may +# specify as many [[mediatype-handlers]] as you want to setup multiple commands. +# +# If the subtype is omitted then the specified command will be used for the +# entire type: +# +# [[mediatype-handlers]] +# command = ['vlc', '--flag'] +# types = ["audio", "video"] +# +# A catch-all handler can by specified with "*". +# Note that there are already catch-all handlers in place for all OSes, +# that open the file using your default application. This is only if you +# want to override that. +# +# [[mediatype-handlers]] +# cmd = ['some-command'] +# types = [ +# "application/pdf", +# "*", +# ] +# +# You can also choose to stream the data instead of downloading it all before +# opening it. This is especially useful for large video or audio files, as +# well as radio streams, which will never complete. You can do this like so: +# +# [[mediatype-handlers]] +# cmd = ['vlc', '-'] +# types = ["audio", "video"] +# stream = true +# +# This uses vlc to stream all video and audio content. +# By default stream is set to off for all handlers +# +# +# If you want to always open a type in its viewer without the download or open +# prompt appearing, you can add no_prompt = true +# +# [[mediatype-handlers]] +# cmd = ['feh'] +# types = ["image"] +# no_prompt = true +# +# Note: Multiple handlers cannot be defined for the same full media type, but +# still there needs to be an order for which handlers are used. The following +# order applies regardless of the order written in the config: +# +# 1. Full media type: "image/jpeg" +# 2. Just type: "image" +# 3. Catch-all: "*" + [cache] # Options for page cache - which is only for text pages # Increase the cache size to speed up browsing at the expense of memory diff --git a/home/.config/doom/config.el b/home/.config/doom/config.el index 08d92ad..1eb9be3 100644 --- a/home/.config/doom/config.el +++ b/home/.config/doom/config.el @@ -105,8 +105,8 @@ org-hide-emphasis-markers t) ;; Spell checker -(after! spell-fu - (setq spell-fu-idle-delay 0.5)) +(after! flyspell + (setq flyspell-lazy-idle-seconds 2)) ;; Elfeed (setq rmh-elfeed-org-files (list (expand-file-name "elfeed.org" doom-private-dir))) diff --git a/home/.config/doom/exwm.el b/home/.config/doom/exwm.el index a851b0d..0287f47 100644 --- a/home/.config/doom/exwm.el +++ b/home/.config/doom/exwm.el @@ -42,6 +42,13 @@ (message "Updated displays: %s" (string-trim (shell-command-to-string "xrandr | grep \" connected\" | awk '{print $1}' | sed '$!N;s/\\n/ /'")))) +(defun follie/exwm-rename-buffer () + (interactive) + (exwm-workspace-rename-buffer + (concat exwm-class-name ":" + (if (<= (length exwm-title) 30) exwm-title + (concat (substring exwm-title 0 29)))))) + (use-package! exwm :config ;; Number of workspaces @@ -51,12 +58,8 @@ (add-hook 'exwm-init-hook #'follie/exwm-init-hook) ;; Update buffer name - (add-hook 'exwm-update-class-hook - (lambda () - (exwm-workspace-rename-buffer exwm-class-name))) - (add-hook 'exwm-update-title-hook - (lambda () - (exwm-workspace-rename-buffer exwm-class-name))) + (add-hook 'exwm-update-class-hook #'follie/exwm-rename-buffer) + (add-hook 'exwm-update-title-hook #'follie/exwm-rename-buffer) ;; Force tiling by default (setq exwm-manage-force-tiling nil) diff --git a/home/.config/doom/init.el b/home/.config/doom/init.el index d726c36..a345165 100644 --- a/home/.config/doom/init.el +++ b/home/.config/doom/init.el @@ -93,6 +93,7 @@ :checkers syntax ; tasing you for every semicolon you forget (spell ; tasing you for misspelling mispelling + +flyspell +hunspell +everywhere) grammar ; tasing grammar mistake every you make