24 Komitmen e1dfd97b56 ... 3e6fe67bb7

Pembuat SHA1 Pesan Tanggal
  René Maya 3e6fe67bb7 Change to curl since ftp only works in openbsd 3 tahun lalu
  René Maya d199c1c834 Clean githelpers 3 tahun lalu
  René Maya 63257c0250 WIP settings for org templates 3 tahun lalu
  René Maya 8a867d62fb Add optional preferences to vintage section 3 tahun lalu
  René Maya 4d3557a907 Add ruby configuration options for openssl in mac 3 tahun lalu
  René Maya e4efa087f2 Change cmus colors 3 tahun lalu
  René Maya e87b7f8b23 Add fetch function 3 tahun lalu
  René Maya c434e123dd Add new exit message for irb 3 tahun lalu
  René Maya dba3c5c96a Replace ffx alias with a function 3 tahun lalu
  René Maya ebf47c6c53 Let IRB conf take care of exit message 3 tahun lalu
  René Maya e9d832c9f8 Tweak snippets 3 tahun lalu
  René Maya 43f82977d9 Extract functions with hardcoded details 4 tahun lalu
  René Maya 830371f733 Rename ambiguous git aliases 4 tahun lalu
  René Maya d6cd893cac Add cleaning functions and aliases 4 tahun lalu
  René Maya 2a35c5ed1f Fix end of file 4 tahun lalu
  René Maya 25d3e9712f Remove empty definition 4 tahun lalu
  René Maya 51ecbeec3c Add function to fetch arxiv papers 4 tahun lalu
  René Maya 8f51566dbb Remind to update default gems after installation 4 tahun lalu
  René Maya 5cf0f944db Add bundle path to config to replace alias path flag 4 tahun lalu
  René Maya eecfb4c544 Add aliases for source url and commit details 4 tahun lalu
  René Maya ebcd1ed24a Prevent id leak and remote forwarding 4 tahun lalu
  René Maya 54a620e775 Update list of gemified libraries to match 2_7 4 tahun lalu
  René Maya d8973c6e8f Add trr custom_uri for DoH resolver and move trr mode 4 tahun lalu
  René Maya 847d08a414 Make DoH opt-in 5 tahun lalu

File diff ditekan karena terlalu besar
+ 23 - 2
.spacemacs.d/init.el


+ 79 - 0
.spacemacs.d/layers/blorg/funcs.el

@@ -0,0 +1,79 @@
+(defvar blorg-root-dir "~/Code/web/sites/ownware/")
+(defvar blorg-posts (concat blorg-root-dir "code/drafts"))
+(defvar blorg-articles (concat blorg-root-dir "configure/drafts"))
+
+(defun blorg-new-post ()
+  (let ((title
+         (if (string= "" (thing-at-point 'word))
+             (thing-at-point 'word) (car kill-ring))))
+    (concat (file-name-as-directory blorg-posts)
+            title ".org")))
+
+(defun blorg-new-article ()
+  (let ((title
+         (if (string= "" (thing-at-point 'word))
+             (thing-at-point 'word) (car kill-ring))))
+    (concat (file-name-as-directory blorg-articles)
+            title ".org")))
+
+
+(setq org-capture-templates
+      '(("d" "Code" plain (file (blorg-new-post))
+         "#+Setupfile: ../templates/authors/rem.org
+#+Date: {{{modification-time(%Y-%m-%d)}}}
+#+Creator:
+#+PubDate:
+#+Title: ?
+#+Keywords:
+#+Description:
+
+#+Begin_center
+By: {{{author}}}
+Published: {{{keyword(PubDate)}}}
+Updated: {{{date}}}
+#+End_center")
+        ("g" "Configure" plain (file (blorg-new-article))
+         "#+Setupfile: ../templates/authors/rem.org
+#+Date: {{{modification-time(%Y-%m-%d)}}}
+#+Creator:
+#+PubDate:
+#+Title: ?
+#+Keywords:
+#+Description:
+
+#+Begin_center
+By: {{{author}}}
+Published: {{{keyword(PubDate)}}}
+Updated: {{{date}}}
+#+End_center")))
+
+;; Drafts Management
+;;
+;; (defun jekyll-drafts ()
+;;   (let ((default-directory drafts))
+;;     (file-expand-wildcards "*.md")))
+
+
+;; (defun jekyll-resume (post)
+;;   "Resume writing one of the posts from the Jekyll drafts directory"
+;;   (interactive
+;;    (list (completing-read "Post to resume: "
+;;                           (jekyll-drafts) nil t "")))
+;;   (find-file (concat (file-name-as-directory drafts) post)))
+
+
+;; Publish drafts
+;;
+;; (defun jekyll-publish (post)
+;;   "Mark one of the posts from the Jekyll drafts directory as published.
+;;     This actually means moving the post from the _drafts to the _posts
+;;     directory."
+;;   (interactive
+;;    (list (completing-read "Post to mark as published: "
+;;                           (jekyll-drafts) nil t "")))
+;;   (copy-file (concat (file-name-as-directory drafts) post)
+;;              (concat (file-name-as-directory posts) post))
+;;   (delete-file (concat (file-name-as-directory drafts) post)))
+
+;; check out some of these
+;; https://out-of-cheese-error.netlify.com/spacemacs-config#org9b57a4f

+ 0 - 3
.spacemacs.d/layers/jekyll/funcs.el

@@ -30,9 +30,6 @@
     (concat (file-name-as-directory drafts)
             (today-is) "-" title ".md")))
 
-(setq org-capture-templates
-      '())
-
 (defun jekyll-new-bit ()
   (let ((title
          (if (string= "" (thing-at-point 'word))

+ 17 - 0
.spacemacs.d/snippets/css-mode/gc

@@ -0,0 +1,17 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: gentle center
+# key: gc
+# --
+/* https://web.dev/centering-in-css */
+/* Only handles alignment, direction, and distribution */
+/* Edits and maintenance are all in one spot */
+/* Gap guarantees equal spacing amongst n children */
+/* Great for both macro and micro layouts */
+
+.body {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  gap: 1ch;
+}

+ 1 - 1
.spacemacs.d/snippets/minitest-mode/asex

@@ -6,4 +6,4 @@ e = assert_raises ${1:exception} do
   $0
 end
 
-assert_equal ${2:error_message}, e.message
+assert_match %r"${2:error_message}", e.message

+ 0 - 5
.spacemacs.d/snippets/minitest-mode/asmo

@@ -1,5 +0,0 @@
-# -*- mode: snippet; require-final-newline: nil -*-
-# name: assert_mock
-# key: asmo
-# --
-assert_mock ${1:mock}$0

+ 5 - 0
.spacemacs.d/snippets/minitest-mode/aspa

@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: assert_path_exists
+# key: aspa
+# --
+assert_path_exists ${1:path}$0

+ 10 - 0
.spacemacs.d/snippets/minitest-mode/caio

@@ -0,0 +1,10 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: capture_io
+# key: caio
+# --
+out, err = capture_io do
+  ${0}
+end
+
+assert_match %r"${1:info}", out
+assert_match %r"${2:bad}", err

+ 10 - 0
.spacemacs.d/snippets/minitest-mode/casu

@@ -0,0 +1,10 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: capture_subprocess_io
+# key: casu
+# --
+out, err = capture_subprocess_io do
+  ${0}
+end
+
+assert_match %r"${1:info}", out
+assert_match %r"${2:bad}", err

+ 0 - 0
.spacemacs.d/snippets/minitest-mode/faaf


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini