Quellcode durchsuchen

Removed word count, a typo and fixed a blog helper

Eiyeron Fulmincendii vor 5 Jahren
Ursprung
Commit
bc2e328394
1 geänderte Dateien mit 7 neuen und 11 gelöschten Zeilen
  1. 7 11
      config.org

+ 7 - 11
config.org

@@ -123,10 +123,6 @@ visual noise.
 ;;(setq doom-modeline-enable-word-count t)
 ;;(setq doom-modeline-continuous-word-count-modes
 ;;      '(markdown-mode gfm-mode org-mode))
-
-(setq doom-modeline-enable-word-count t)
-(setq doom-modeline-continuous-word-count-modes
-      '(markdown-mode gfm-mode org-mode))
 #+END_SRC
 *** Line numbers
 I like my line numbers in italic, for no sensible reason. It just looks good to
@@ -331,7 +327,7 @@ with the help of FFMPEG, here it is.
 #+BEGIN_SRC bash :tangle no
 # base
 ffmpeg -i input-file.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output-file.webm
-# This worked not so bad on voxathrone gif
+# This worked not so badly on voxathrone gif
 # ---
 # auto-alt-ref is needed because the webm format will throw a tantrum due to
 # transparency in the gif.
@@ -418,12 +414,12 @@ Simple but rather effective.
 #+BEGIN_SRC emacs-lisp
 (defun chicken/counsel-filter-gif(regex candidates)
   "Wraps counsel--find-file-matcher to filter files to only keep
-gifs located in the content subfolder."
-  (let ((filtered
-         (remove-if-not
-          (lambda (file) (and (s-ends-with-p ".gif" file t)
-                 (s-starts-with-p "content" file t)))
-          candidates)))
+gifs located in the post's folder."
+  (let ((filtered (chicken/filter
+                   (lambda (file)
+                     (and (s-ends-with-p ".gif" file t)
+                          t))
+                   candidates)))
     (counsel--find-file-matcher regex filtered)))
 
 ;;;###autoload