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 +0,0 @@
|
|||
<!-- SC_OFF --><div class="md"><p>I'm writing a config file to my personal site to use when installing Arch with <code>archinstall</code> and was wondering what the write-up for partitioning two drives to report as one volume would look like. I know the example for installing to one and only using only one looks like the one written <a href="https://github.com/archlinux/archinstall/blob/master/examples/disk_layouts-sample.json">here</a> but I was hoping to have something similar to how Fedora auto-partitions drives when setting up.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/ChrisHazFun"> /u/ChrisHazFun </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/rux71a/wanting_two_nvme_ssds_to_report_as_one_volume/">[link]</a></span>   <span><a href="https://www.reddit.com/r/archlinux/comments/rux71a/wanting_two_nvme_ssds_to_report_as_one_volume/">[comments]</a></span>
|
|
@ -1 +0,0 @@
|
|||
<a href="https://www.facebook.com/NorthernValleyTFC/"><img src="https://scontent.fict1-1.fna.fbcdn.net/v/t1.6435-1/cp0/p50x50/151177197_115670240562784_7305556504870656520_n.png?_nc_cat=105&ccb=1-5&_nc_sid=dbb9e7&_nc_ohc=xoFCcgZhpMsAX_xHxjk&_nc_ht=scontent.fict1-1.fna&oh=4ec63298f66f25af09c5755fa579e557&oe=616904E6" alt="" /></a><a href="https://www.facebook.com/NorthernValleyTFC/">NV TFC</a><a href="https://www.facebook.com/NorthernValleyTFC/posts/121303176666157"></a><i></i><p>This week at NV TFC we'll be working through the Jerusalem Counsel in Acts 15. It's such an important passage because this is the place where the early church decides on it's position not just towards the Gentiles, but to Christ's effective work in fulfilling the Law. This event sets the precedence for how Paul interprets the law no longer having rule over people and instead on how we are SAVED by HIS work, not our own. It's why we can view all people as images of God rather than sinners. There's a line in this song that goes, "we all need the same medicine, we all need a second chance, there's no first in line at the foot of the cross". What a powerful truth to see how Jesus's work places us all in the same boat, with the same salvation available.<br /> <a href="https://www.youtube.com/watch?v=8yV0pu60Uqs">https://www.youtube.com/watch?v=8yV0pu60Uqs</a></p><a href="https://www.youtube.com/watch?v=8yV0pu60Uqs">Click here to stream/download "Image Of God": https://wearemessengers.lnk.to/PowerPlusLyrics:I woke up with a broken heart in my chestI couldn’t sleep couldn...<img src="https://external.fict1-1.fna.fbcdn.net/safe_image.php?d=AQFVnqGQRWruPD-W&w=540&h=282&url=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8yV0pu60Uqs%2Fmaxresdefault.jpg&cfs=1&upscale=1&fallback=news_d_placeholder_publisher&_nc_oe=6eb0d&_nc_sid=632586&ccb=3-5&_nc_hash=AQEPmzDZAdQaprDc" alt="" width="500" height="262" caption="" /></a><p>youtube.com</p><p>We Are Messengers - Image Of God (Official Lyric Video)</p>Click here to stream/download "Image Of God": https://wearemessengers.lnk.to/PowerPlusLyrics:I woke up with a broken heart in my chestI couldn’t sleep couldn...<a href="https://www.youtube.com/watch?v=8yV0pu60Uqs">Click here to stream/download "Image Of God": https://wearemessengers.lnk.to/PowerPlusLyrics:I woke up with a broken heart in my chestI couldn’t sleep couldn...</a>
|
|
@ -1 +0,0 @@
|
|||
<!-- SC_OFF --><div class="md"><p>I often need to use indent-region from indent.el to fix the indentation of code template I have from school. So I made this function :</p> <pre><code>(defun indent-buffer () (interactive) (if (not (string= major-mode 'python-mode)) (indent-region (point-min) (point-max)) (message "Not in python"))) (global-set-key (kbd "M-i") 'indent-buffer) </code></pre> <p>It works well but I recently found out that the default indentation is only 2 space char. I would like to have it inserting 4 chars width TABS. I tried to look in the customization group of indent.el and even used <a href="https://www.kernel.org/doc/html/v4.10/process/coding-style.html#you-ve-made-a-mess-of-it">kernel coding style emacs config</a>, which works when I press <TAB> but doesn't when using (indent-buffer).</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/Nathoufresh"> /u/Nathoufresh </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/rrzbor/how_to_insert_tabs_with_indentregion/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/rrzbor/how_to_insert_tabs_with_indentregion/">[comments]</a></span>
|
|
@ -1,3 +0,0 @@
|
|||
<img src="https://media.babylonbee.com/thumbs/article-9701-1-thumb.jpg"> <p>U.S.—Twitter, Facebook, YouTube, TikTok, and Instagram have all confirmed they have banned a young peasant child from their social networks after he pointed out that the emperor has no clothes.</p>
|
||||
<p>The post <a rel="nofollow" href="https://babylonbee.com/news/boy-who-pointed-out-the-emperor-has-no-clothes-banned-for-misinformation">Boy Who Pointed Out The Emperor Has No Clothes Banned For Misinformation</a> appeared first on <a rel="nofollow" href="https://babylonbee.com">The Babylon Bee</a>.</p>
|
||||
|
|
@ -1 +0,0 @@
|
|||
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/rajddu/i3_endeavour_3/"> <img src="https://preview.redd.it/mt0qr4apyz381.png?width=640&crop=smart&auto=webp&s=a312dddbb9272fb3612ce5a1148dfe7a76028a17" alt="[i3] endeavour <3" title="[i3] endeavour <3" /> </a> </td><td>   submitted by   <a href="https://www.reddit.com/user/Pandoyer"> /u/Pandoyer </a> <br/> <span><a href="https://i.redd.it/mt0qr4apyz381.png">[link]</a></span>   <span><a href="https://www.reddit.com/r/unixporn/comments/rajddu/i3_endeavour_3/">[comments]</a></span> </td></tr></table>
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
<a href="https://www.facebook.com/NorthernValleyTFC/"><img src="https://scontent.fict1-1.fna.fbcdn.net/v/t1.6435-1/cp0/p50x50/151177197_115670240562784_7305556504870656520_n.png?_nc_cat=105&ccb=1-5&_nc_sid=dbb9e7&_nc_ohc=xoFCcgZhpMsAX_xHxjk&_nc_ht=scontent.fict1-1.fna&oh=4ec63298f66f25af09c5755fa579e557&oe=616904E6" alt="" /></a><a href="https://www.facebook.com/NorthernValleyTFC/">NV TFC</a><a href="https://www.facebook.com/NorthernValleyTFC/photos/a.117554230374385/139974571465684/"></a><i></i><p>Today we are going to spend time talking about Paul being shipwrecked. When was the last time you just felt like everything got wrecked? Doesn't that hurt? Don't we all feel at times like we are sunk? The crazy thing is, even when everything was going wrong and nothing seemed good for Paul, he still clung to the Lord. And the Lord was still with him. I think of when Paul got bit by that snake, surely that was God showing him, that God is still with Paul.</p><a href="https://www.facebook.com/NorthernValleyTFC/photos/a.117554230374385/139974571465684/"><img src="https://scontent.fict1-1.fna.fbcdn.net/v/t1.6435-9/p235x350/173220288_139974574799017_4723876781126188491_n.png?_nc_cat=100&ccb=1-5&_nc_sid=8024bb&_nc_ohc=nWrS_pb1d3AAX9GL23C&_nc_ht=scontent.fict1-1.fna&oh=57335981c43b101a52a9560cb7c2d36f&oe=61674620" alt="May be an image of cloud and text that says 'Acts 28:4-5 When the nàtives saw the creature hanging from his hand, they said to one another, "No doubt this man is a murderer However he off Ûoooff the creature into the fire and wasn't harmed.'" width="500" height="341" caption="May be an image of cloud and text that says 'Acts 28:4-5 When the nàtives saw the creature hanging from his hand, they said to one another, "No doubt this man is a murderer However he off Ûoooff the creature into the fire and wasn't harmed.'" /></a>
|
|
@ -1 +0,0 @@
|
|||
<!-- SC_OFF --><div class="md"><p>So I noticed my browser was slow, so I looked on bios and saw that xmp was disables so I disabled it also enable iomuu which is virtualization, but when I rebooted Wayland would give me black screen and kick me out to sddm any help? Thanks in advance.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/Zmitebambino"> /u/Zmitebambino </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/ruo828/wayland_kde_plasma_black_screen_and_back_to_sddm/">[link]</a></span>   <span><a href="https://www.reddit.com/r/archlinux/comments/ruo828/wayland_kde_plasma_black_screen_and_back_to_sddm/">[comments]</a></span>
|
|
@ -1 +0,0 @@
|
|||
<!-- SC_OFF --><div class="md"><p>The Arch Wiki on keyboard layouts set to edit this file to change the keyboard layout:</p> <p>/etc/X11/xorg.conf.d/00-keyboard.conf</p> <p>These are the contents of this file:</p> <pre><code># Written by systemd-localed(8), read by systemd-localed and Xorg. It's # probably wise not to edit this file manually. Use localectl(1) to # instruct systemd-localed to update it. Section "InputClass" Identifier "system-keyboard" MatchIsKeyboard "on" Option "XkbLayout" "us,us" Option "XkbModel" "pc104" Option "XkbVariant" "qwerty,colemak" Option "XkbOptions" "grp:shift_caps_toggle" EndSection </code></pre> <p>What I want it to do is set the default layout to qwerty, and an alternative layout colemak. To switch between layout, I want to press shift and capslock. This does not work. Pressing shift and capslock does not switch to colemak.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/SaltyMaybe7887"> /u/SaltyMaybe7887 </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/r3028m/alternative_keyboard_layout_not_working/">[link]</a></span>   <span><a href="https://www.reddit.com/r/archlinux/comments/r3028m/alternative_keyboard_layout_not_working/">[comments]</a></span>
|
|
@ -1 +0,0 @@
|
|||
<!-- SC_OFF --><div class="md"><p>I have a double monitor setup. One of my monitor, an ASUS VG249Q1R can run at 165 Hz after I enable overclocking in its user interface. Before, it can only run 60 Hz. But when I set it to 165 Hz it only shows random colors (white, blue, green, ...). It works with 144 Hz though. </p> <p>This is my /etc/X11/10-monitor.conf with 144 Hz that works:</p> <pre><code>Section "ServerFlags" Option "BlankTime" "0" EndSection Section "Monitor" Identifier "HDMI-A-1" Modeline "192x108" 220.75 1920 2064 2264 2608 1080 1083 1088 1130 -hsync +vsync Option "PreferredMode" "192x108" Option "RightOf" "DisplayPort-0" EndSection # This is the monitor Section "Monitor" Identifier "DisplayPort-0" Modeline "192x108" 452.50 1920 2088 2296 2672 1080 1083 1088 1177 -hsync +vsync Option "PreferredMode" "192x108" Option "Primary" "true" EndSection </code></pre> <p>And this is the same file with something with 165 Hz that causes X or whatever to show those random colors:</p> <pre><code>Section "ServerFlags" Option "BlankTime" "0" EndSection Section "Monitor" Identifier "HDMI-A-1" Modeline "192x108" 525.00 1920 2088 2296 2672 1080 1083 1088 1192 -hsync +vsync Option "PreferredMode" "192x108" Option "RightOf" "DisplayPort-0" EndSection # This is the monitor Section "Monitor" Identifier "DisplayPort-0" Modeline "192x108" 455.75 1920 2088 2296 2672 1080 1083 1088 1177 -hsync +vsync Option "PreferredMode" "192x108" Option "Primary" "true" EndSection </code></pre> <p>Both modelines are calculated using <code>cvt</code>.And finally, this is my /etc/X11/20-amdgpu.conf (I use an AMD Radeon RX 590):</p> <pre><code>Section "Device" Identifier "AMD" Driver "amdgpu" Option "TearFree" "true" Option "VariableRefresh" "true" EndSection </code></pre> <p>What can I do in order to have a refresh rate of 165 Hz instead of 144 Hz?</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/patri9ck"> /u/patri9ck </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/r5ptq2/monitor_only_shows_random_colors_when_setting_a/">[link]</a></span>   <span><a href="https://www.reddit.com/r/archlinux/comments/r5ptq2/monitor_only_shows_random_colors_when_setting_a/">[comments]</a></span>
|
|
@ -1 +0,0 @@
|
|||
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/q87ztw/pantheon_riceish/"> <img src="https://external-preview.redd.it/55e8HSs7QqZk2dVwlCD0SHUmiir_lyamFTbHO2zdIRc.jpg?width=640&crop=smart&auto=webp&s=86624c791568480b483c21b49bfadb57f7c245cc" alt="[Pantheon] Rice(ish?)" title="[Pantheon] Rice(ish?)" /> </a> </td><td>   submitted by   <a href="https://www.reddit.com/user/Hot-Kick5863"> /u/Hot-Kick5863 </a> <br/> <span><a href="https://imgur.com/a/KXT2VWA">[link]</a></span>   <span><a href="https://www.reddit.com/r/unixporn/comments/q87ztw/pantheon_riceish/">[comments]</a></span> </td></tr></table>
|
|
@ -1,43 +0,0 @@
|
|||
<p>One of the first customizations folks make to their Emacs is to hide the menu bar. This makes some sense if you’re using a completion UI like Ivy: it’s usually faster and more convenient to find an option using fuzzy completion in the minibuffer than it is to mouse over a series of menus. Also, the menu covers only options that are relevant to the end-user. If you want fine-grained customization or access to Emacs’ API, you’ll need to use a different interface (like <code>customize</code>). The menu is thus seen as a crutch for new users to outgrow.</p>
|
||||
<p>It’s a shame, though. The menu bar serves two useful purposes:</p>
|
||||
<ol>
|
||||
<li>
|
||||
<p><strong>Discoverability</strong>: <code>M-x</code> and the <code>describe-*</code> commands are good for “keyword searches”, <em>i.e</em> finding exact names for features that you know exist, including a rough idea of what it might be called (<em>"…probably ends in <code>-hook</code>?"</em>). But what about the unknown unkowns? Unless you chance upon features you want when looking for something else, you’re out of luck. The menu bar is a helpful guide to discover features. CUA-mode, one of the most common new user requests is front and center in the menu bar:</p>
|
||||
<figure>
|
||||
<img src="https://karthinks.com/img/tab-bar-menu-demo-1.png" />
|
||||
</figure>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<p><strong>Organization</strong>: The menu bar for any major-mode usually contains a comprehensive collection of options for that mode. Notwithstanding some recent improvements to command filtering, the <code>M-x</code> interface throws up the entire bag of Emacs’ commands at you irrespective of the context in which it’s called. The <code>describe-*</code> commands are worse. In contrast, the menu bar changes depending on what modes you have active, and generally provides a relevant set of actions. For example, the menu bar in programming modes provides options for linting, compilation, tracing, code folding and so on.<sup id="fnref:1"><a class="footnote-ref" href="https://karthinks.com/tags/emacs/index.xml#fn:1">1</a></sup> The menu in LaTeX or Org-mode is quite different.</p>
|
||||
</li>
|
||||
</ol>
|
||||
<p>But if we’re honest, the real reason the menu bar is avoided tends to be more superficial: <em>it takes up space and does not compose visually with Emacs’ theming.</em></p>
|
||||
<p>Let’s address this too. There are at least two non-invasive approaches to using the menu in Emacs.</p>
|
||||
<h2 id="the-text-mode-menu">The text-mode menu</h2>
|
||||
<p>There’s a text-mode menu built into Emacs. Calling <code>tmm-menubar</code> (bound to <code>M-`</code> by default) will allow menu-bar access from the minibuffer (or equivalent), helping with discoverability and organization as before:</p>
|
||||
<div style="width: 100%; height: 0px;"><p><a href="https://karthinks.com/img/tab-bar-menu-demo-3.mp4">[TMM-MENUBAR DEMO]</a></p></div>
|
||||
<p><small>(<a href="https://karthinks.com/img/tab-bar-menu-demo-3.mp4">Direct link</a>)</small></p>
|
||||
<h2 id="the-tab-bar-menu">The tab-bar menu</h2>
|
||||
<p>The second method requires Emacs 28. You can shove the menu into the tab-bar:</p>
|
||||
<div style="width: 100%; height: 0px;"><p><a href="https://karthinks.com/img/tab-bar-menu-demo-2.mp4">[TAB-BAR MENU DEMO]</a></p></div>
|
||||
<p>(<a href="https://karthinks.com/img/tab-bar-menu-demo-2.mp4">Direct link</a>)</p>
|
||||
<p>To do this, you add the built-in function <code>tab-bar-format-menu-bar</code> to <code>tab-bar-format</code>, which is the list of widgets to show in the tab bar.</p>
|
||||
<div class="highlight"><pre><code class="language-emacs-lisp">(<span style="color: #963;">add-to-list</span> <span style="color: #a60; background-color: #fff0f0;">'tab-bar-format</span> <span style="color: #06b; font-weight: bold;">#'</span><span style="color: #963;">tab-bar-format-menu-bar</span>)
|
||||
</code></pre></div><p>Contrary to its name, the tab-bar can show <a href="http://ruzkuku.com/texts/emacs-global.html">arbitrary information</a>. For example, the system time and battery information in addition to the menu and open tabs:</p>
|
||||
<figure>
|
||||
<img src="https://karthinks.com/img/tab-bar-global-demo-1.png" />
|
||||
</figure>
|
||||
|
||||
<p>I use tabs (as workspaces) and the tab-bar already, so I prefer this method for accessing the menu occasionally.<sup id="fnref:2"><a class="footnote-ref" href="https://karthinks.com/tags/emacs/index.xml#fn:2">2</a></sup></p>
|
||||
<section class="footnotes">
|
||||
<hr />
|
||||
<ol>
|
||||
<li id="fn:1">
|
||||
<p>Of course, this supposes that the relevant features are available in Emacs either as built-ins or through an installed package. <a class="footnote-backref" href="https://karthinks.com/tags/emacs/index.xml#fnref:1">↩︎</a></p>
|
||||
</li>
|
||||
<li id="fn:2">
|
||||
<p>I changed the menu button text to <code>𝞴</code> from the default to further shorten it. <a class="footnote-backref" href="https://karthinks.com/tags/emacs/index.xml#fnref:2">↩︎</a></p>
|
||||
</li>
|
||||
</ol>
|
||||
</section>
|
Loading…
Add table
Add a link
Reference in a new issue