fixing a bunch of broken stuff I think
This commit is contained in:
parent
0dbc3ead0e
commit
8bace887a2
1551 changed files with 299 additions and 57481 deletions
|
@ -1,4 +0,0 @@
|
|||
<p>Just a quickie today. Bill over at ATMakers has a short video on <a href="https://www.youtube.com/watch?v=wFCO__0prCM">Why He Uses Emacs</a>. It’s actually a nice example of using keyboard macros to convert raw data into the required form.</p>
|
||||
<p>I like it because it’s a realistic example. Very often when we want to convert a data set to some other format, we have the problem that the source data is not completely regular. Theoretically, this means we can’t write a quick and easy macro to do the conversion but, of course, that is not how we work. If there are one or two outliers in the data, we just convert everything according to the canonical data and fix up the outliers by hand afterwards.</p>
|
||||
<p>That’s exactly what Bill does in his video. Most of the data is converted perfectly but the two outliers are easy to fix by hand and the entire process is much more efficient than converting each datum by hand or writing an app that does the right thing for each entry. Instead of an hour or two of tedious work or programming, Bill converts the first entry while recording his keystrokes and then applies that to all the other entries. The fact that it doesn’t work on a couple of irregular entries doesn’t matter; they are easily fixed by hand.</p>
|
||||
<p>The video is only 6 minutes, 15 seconds long so it should be easy to find time for it.</p>
|
|
@ -1 +0,0 @@
|
|||
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/q87f8s/xfce_first_linux_distro_first_rice_a_first_for/"> <img src="https://preview.redd.it/khjt8zkl0ht71.png?width=640&crop=smart&auto=webp&s=282bb462334a410ac78b5c27344d9e81e82672a9" alt="[Xfce] First Linux Distro, First Rice, a First for Everything" title="[Xfce] First Linux Distro, First Rice, a First for Everything" /> </a> </td><td>   submitted by   <a href="https://www.reddit.com/user/ErrorredSys"> /u/ErrorredSys </a> <br/> <span><a href="https://i.redd.it/khjt8zkl0ht71.png">[link]</a></span>   <span><a href="https://www.reddit.com/r/unixporn/comments/q87f8s/xfce_first_linux_distro_first_rice_a_first_for/">[comments]</a></span> </td></tr></table>
|
|
@ -1 +0,0 @@
|
|||
<!-- SC_OFF --><div class="md"><p>This is a thread to get answers for all your questions about *NIX desktop configuration! Feel free to share your setups here and ask for advice. In short, you can make any on-topic comment, in any format you like, and by using any host. We hope this gives new users a chance to get some help with any problems they're having and more experienced users a chance to show off their knowledge by helping those in need.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/AutoModerator"> /u/AutoModerator </a> <br/> <span><a href="https://www.reddit.com/r/unixporn/comments/rjrqwj/weekly_workshop_20211219/">[link]</a></span>   <span><a href="https://www.reddit.com/r/unixporn/comments/rjrqwj/weekly_workshop_20211219/">[comments]</a></span>
|
|
@ -1,3 +0,0 @@
|
|||
<img src="https://media.babylonbee.com/thumbs/article-9979-1-thumb.jpg"> <p dir="ltr">PANGEA—With President Biden unable or too sleepy to do anything about the rising gas prices, former President Donald Trump has come to the rescue. He has funded the creation of a time machine so he can go back in time and kill dinosaurs so they can become more fossil fuels.</p>
|
||||
<p>The post <a rel="nofollow" href="https://babylonbee.com/news/trump-to-the-rescue-trump-travels-back-in-time-to-kill-more-dinosaurs-to-meet-our-fossil-fuel-needs">Trump To The Rescue: Trump Travels Back In Time To Kill More Dinosaurs To Meet Our Fossil Fuel Needs</a> appeared first on <a rel="nofollow" href="https://babylonbee.com">The Babylon Bee</a>.</p>
|
||||
|
|
@ -1 +0,0 @@
|
|||
<!-- SC_OFF --><div class="md"><p>I am annoyed that when I <code>C-g</code> out of my expand-region session my cursor does not return to its original location.</p> <p>In trying to resolve this annoyance I found that expand-region comes with a variable <code>er/save-mode-excursion</code> that is described as:</p> <blockquote> <p>A function to save excursion state while expanding</p> </blockquote> <p>I set this variable to <code>(lambda (&rest body) () (save-excursion body))</code> and I found that this does not suit my needs for the following reasons.</p> <ul> <li>This variable does not seem to effect any <code>er/mark-</code> commands outside of <code>er/expand-region</code>. For example if I do <code>er/mark-defun</code> and then hit <code>C-g</code> my cursor position is not returned.</li> <li>I often use a key-chord bound to <code>(lambda () (interactive) (execute-kbd-macro (read-kbd-macro "\C-g")))</code>. When I use this key-chord instead of actually hitting C-g my cursor position is not returned. I do not understand why this is.</li> </ul> <p>Next I tried taking advantage of the <code>deactivate-mark-hook</code> to programatically hit <code>C-u C-SPC</code>.</p> <pre><code>(add-hook 'deactivate-mark-hook #'(lambda () (let ((current-prefix-arg 4)) (call-interactively 'set-mark-command)))) </code></pre> <p>This works great for my non expand-region region endeavours but when I try to use any <code>er/</code> commands I get unpredictable behavior. I believe the problem is that expand-region resets the mark multiple times and therefore <code>deactivate-mark-hook</code> is called multiple times.</p> <p>In regards to the <code>er/mark-</code> functions I tried to wrap them all up in new functions that wrap a <code>save-excursion</code> but the behavior is not what I expected. For example if I try this on <code>er/mark-defun</code> then the marked region becomes from the current point to the end of the defun instead of marking the entire defun.</p> <p>My next idea is to make my own <code>expand-region-minor-mode</code> where I can probably solve this problem. Before I do this though I want to know if there are already existing solutions.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/thirtySeven73"> /u/thirtySeven73 </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/qzu4pd/how_can_i_saveexcursion_with_expandregion/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/qzu4pd/how_can_i_saveexcursion_with_expandregion/">[comments]</a></span>
|
|
@ -1 +0,0 @@
|
|||
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/r2km4q/xfce4_pywalwpgtk_first_rice_in_a_while_yes_thats/"> <img src="https://preview.redd.it/ul6lmeny4x181.png?width=640&crop=smart&auto=webp&s=338a68774edc14f2469ad38e578661e1df3679ff" alt="[xfce4] [pywal/wpgtk] first rice in a while, yes, that's a macOS wallpaper, sue me" title="[xfce4] [pywal/wpgtk] first rice in a while, yes, that's a macOS wallpaper, sue me" /> </a> </td><td>   submitted by   <a href="https://www.reddit.com/user/nachog2003"> /u/nachog2003 </a> <br/> <span><a href="https://i.redd.it/ul6lmeny4x181.png">[link]</a></span>   <span><a href="https://www.reddit.com/r/unixporn/comments/r2km4q/xfce4_pywalwpgtk_first_rice_in_a_while_yes_thats/">[comments]</a></span> </td></tr></table>
|
|
@ -1 +0,0 @@
|
|||
<!-- SC_OFF --><div class="md"><p>I'm so close to nailing the first few steps of my note taking system! The final hurdle for me at the moment is getting org-noter-pdftools-create-skeleton to create a much plainer output, and bonus points for it going straight into an org-roam node, but I'd happy for that not to happen.</p> <p>Currently when I run M-x org-noter-pdftools-create-skeleton I get <a href="https://imgur.com/rVQOVK8">the following org-file</a>. I have no idea what the 'contents' subheading is doing, but it seems to contain random bit from the annotation.</p> <p>Ideally I want the command to just output a bullet pointed list with the 'comment' text. </p> <p>If anyone has experience with changing the output of this command I'd love to hear what you did and how. </p> <p>I'm quite new to emacs on the whole, so forgive me if the solution appears simple!</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/slowbalisation"> /u/slowbalisation </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/q2jav9/orgnoterpdftoolscreateskeleton_output/">[link]</a></span>   <span><a href="https://www.reddit.com/r/orgmode/comments/q2jav9/orgnoterpdftoolscreateskeleton_output/">[comments]</a></span>
|
Loading…
Add table
Add a link
Reference in a new issue