{"pubkey":"f1b7b00a4b5e8f2ce033c21d829d919a9e51e3322c0f8d41a8861ca9c265c39a","posts":[{"contentHash":"4ff091a86b77f412f5e0e29186204e4c412e9f4c3bd2432c41165ae29bb901d7","protocol":"bitcoin","authorPubkey":"f1b7b00a4b5e8f2ce033c21d829d919a9e51e3322c0f8d41a8861ca9c265c39a","text":"I also have an Elisp function that takes functions that accept a string and generate a derivative function that works on regions. (defun u/funcall-with-dwim-fn (fn) \"Return a function that either operates on the word at point or region if a region is selected. Region selection takes precedence over `word-at-point'.\" (interactive) (lambda () (interactive) (let* ((query (if (use-region-p) (buffer-substring (use-region-beginning) (use-region-end)) (word-at-point)))) (funcall fn query)))) This is how I apply it to ichiran-romanize to create ichiran-romanize-dwim. (defalias #'ichiran-romanize-dwim (u/funcall-with-dwim-fn #'ichiran-romanize) \"Romanize the region or word at point (if no region is selected) with ichiran.\") The ichiran-romanize-dwim is the function that I bind to a key to do phrase lookups.","topicHash":"913c62c2ee31793c7e8517600dbc8f0c337afae133700a128a7d8ffb8a21c93e","topicName":"technology","parentHash":"7a4da6850d1033e56d1b074066e3189ba12f564f40209ac6c28adf94a525429c","costSunk":"0","biasSupport":0,"biasOppose":0,"biasVouch":0,"biasNull":0,"blockHeight":null,"confirmations":0,"timestamp":"2026-11-24T03:07:18.390Z","tripFp":"bcc73b03082c","viewCount":0,"powDifficulty":0,"relation":0,"ephemeral":true,"nonce":"4f1da46c949886fb","sig":"ad4ab97d0aae1a09d192ec9143d24f5040f947ee20f7a5144bff37ed1746267447fc888be729b7e8c29182bef0fb884625d9b71ca85334a14e2977f1ae94ecac","ephStamp":{"blockHashHex":"000000000000000000001b7d4759dfea5c74381fa780efc2bf332f52ff1848cc","nonceHex":"7fb6030000000000"},"replyCount":0,"chainReplyCount":0,"vaporReplyCount":0,"clusterSize":1,"receiptHeight":977313,"authorMarks":{"since":"2026-11-23T23:07:36.442Z","via":"sight","inscribed":0,"likes":0,"biases":0},"lang":"en"}],"nextCursor":null,"pageReceipt":{"host":"6af58b1822e0cabfe57d76540f745d059b438f489a796ec6a705c6540233845e","t":"2026-12-03T23:42:48.161Z","sig":"915efc79cd9af749d414f254cfd6b5ca6226d00965e0b6ed1f01813d9fbc526e222aae306a541d78264fa4175d51597e6e93839ba56a8bb8caa04aaa970c70e5"},"marks":{"since":"2026-11-23T23:07:36.442Z","via":"sight","inscribed":0,"likes":0,"biases":0}}