<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Emacs on Alok Regmi</title>
		<link>https://alokregmi.com/tags/emacs/</link>
		<description>Recent content in Emacs on Alok Regmi</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Wed, 12 Aug 2020 13:23:08 +0545</lastBuildDate>
		
			<atom:link href="https://alokregmi.com/tags/emacs/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Emacs Shortcuts</title>
				<link>https://alokregmi.com/emacs/emacs_shortcuts/</link>
				<pubDate>Wed, 12 Aug 2020 13:23:08 +0545</pubDate>
				<guid>https://alokregmi.com/emacs/emacs_shortcuts/</guid>
				<description>&lt;h2 id=&#34;emacs-shortcuts&#34;&gt;Emacs Shortcuts&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Spc f d &amp;ndash;&amp;gt; search for files in dired&lt;/li&gt;&#xA;&lt;li&gt;Spc : &amp;ndash;&amp;gt; main command&lt;/li&gt;&#xA;&lt;li&gt;Spc g s &amp;ndash;&amp;gt; git status&lt;/li&gt;&#xA;&lt;li&gt;Spc n n &amp;ndash;&amp;gt;  Capture template&lt;/li&gt;&#xA;&lt;li&gt;Spc n a &amp;ndash;&amp;gt; agenda view&lt;/li&gt;&#xA;&lt;li&gt;Vim commands&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Ctrl up , down &amp;ndash;&amp;gt; go up and down in file&lt;/li&gt;&#xA;&lt;li&gt;q [a-z] &amp;ndash;&amp;gt; record a macro&lt;/li&gt;&#xA;&lt;li&gt;Shift &amp;raquo; &amp;ndash;&amp;gt; indent in code&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Evil snipe:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;s ch : go to ch ; same as f but more letters&lt;/li&gt;&#xA;&lt;li&gt;gc : to comment using evil&lt;/li&gt;&#xA;&lt;li&gt;gs [annotation] &amp;ndash;&amp;gt; to go to lines directly like vimium ease&lt;/li&gt;&#xA;&lt;li&gt;dii &amp;ndash;&amp;gt; delete inside indentation&lt;/li&gt;&#xA;&lt;li&gt;dik &amp;ndash;&amp;gt; delete inside plus a line above&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Dired buffer shortcuts:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Dired marking and unmarking options: % and * keys&lt;/li&gt;&#xA;&lt;li&gt;Narrow subtree : (&lt;/li&gt;&#xA;&lt;li&gt;Show git status for files : )&lt;/li&gt;&#xA;&lt;li&gt;Diff one file to another: =&lt;/li&gt;&#xA;&lt;li&gt;Create a directory : +&lt;/li&gt;&#xA;&lt;li&gt;Up a directory : -&lt;/li&gt;&#xA;&lt;li&gt;Rename a file: R&lt;/li&gt;&#xA;&lt;li&gt;Change timestamp of file: T&lt;/li&gt;&#xA;&lt;li&gt;Copy filename: Y&lt;/li&gt;&#xA;&lt;li&gt;Open a sub-directory in same menu: I&lt;/li&gt;&#xA;&lt;li&gt;Change ownership of file: O&lt;/li&gt;&#xA;&lt;li&gt;Unmark all files: U&lt;/li&gt;&#xA;&lt;li&gt;Hardlink of file: H&lt;/li&gt;&#xA;&lt;li&gt;Goto file: J&lt;/li&gt;&#xA;&lt;li&gt;Counsel search online: K&lt;/li&gt;&#xA;&lt;li&gt;Encrypt, decrypt a file: ;&lt;/li&gt;&#xA;&lt;li&gt;Uncompress or compress : Z&lt;/li&gt;&#xA;&lt;li&gt;Copy file to : C&lt;/li&gt;&#xA;&lt;li&gt;Byte compile a file: B&lt;/li&gt;&#xA;&lt;li&gt;Change file mode: M&lt;/li&gt;&#xA;&lt;li&gt;Copy async to rsync : C-c C-r&lt;/li&gt;&#xA;&lt;li&gt;Wide dired mode: i&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Org table by copying html table: C-c |&lt;/li&gt;&#xA;&lt;li&gt;Show all project TODOs: Spc p t&lt;/li&gt;&#xA;&lt;li&gt;Scroll other window : S-up&lt;/li&gt;&#xA;&lt;li&gt;Scroll other window down : S-down&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;backlinks&#34;&gt;Backlinks&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;../../emacs/emacs_hugo_blogging/&#34;&gt;Emacs Hugo Blogging&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
			<item>
				<title>Emacs Tramp</title>
				<link>https://alokregmi.com/emacs/emacs_tramp/</link>
				<pubDate>Wed, 12 Aug 2020 13:03:24 +0545</pubDate>
				<guid>https://alokregmi.com/emacs/emacs_tramp/</guid>
				<description>&lt;h2 id=&#34;tramp-mode-for-sshing&#34;&gt;Tramp mode for sshing&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://willschenk.com/articles/2020/tramp%5Ftricks/&#34;&gt;Emacs Tramp tricks&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;C-x C-f /ssh:root@ssb.willschenk.com:/etc/host&#xA;This command will ssh into it and now projects can be browsed into emacs as if&#xA;it were right here on my local machine.&#xA;C-x C-f also need not be done since I have bound it to Spc-Spc.&#xA;C-x C-f /sudo::/etc/hosts : edit file as sudo&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!--list-separator--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Also has some tips for docker&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
			<item>
				<title>Emacs Hugo Blogging</title>
				<link>https://alokregmi.com/emacs/emacs_hugo_blogging/</link>
				<pubDate>Wed, 12 Aug 2020 12:51:48 +0545</pubDate>
				<guid>https://alokregmi.com/emacs/emacs_hugo_blogging/</guid>
				<description>&lt;p&gt;ID: 0dacbf0d-550d-4db9-8e15-6ffcede1107c&lt;/p&gt;&#xA;&lt;h2 id=&#34;hugo-blogging&#34;&gt;Hugo blogging&lt;/h2&gt;&#xA;&lt;p&gt;&amp;lt;0d/acbf0d-550d-4db9-8e15-6ffcede1107c/_20200426_045146screenshot.png&amp;gt;&lt;/p&gt;&#xA;&lt;p&gt;Liked themes:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Meme theme&lt;/li&gt;&#xA;&lt;li&gt;Harbor&lt;/li&gt;&#xA;&lt;li&gt;Cortex &amp;ndash;JethroKuan&lt;/li&gt;&#xA;&lt;li&gt;Hello friend ng rhazdon&lt;/li&gt;&#xA;&lt;li&gt;Beautiful Hugo&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;!--list-separator--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Blogging org mode Font&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!--list-separator--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Font: Source Code Pro : big size : Looks amazing: Is in google fonts as well&lt;/p&gt;&#xA;&lt;p&gt;//fonts.googleapis.com/css?family=Roboto+Slab:700,300,400|Source+Code+Pro:500&#xA;//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!--list-separator--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Normalize css : I don&amp;rsquo;t know what it does but looks pretty cool with all these stars on github.&lt;/p&gt;&#xA;&lt;p&gt;I think I have a faint idea now about what it does. It actually makes sure all&#xA;line heights and stuffs look all the same whatever the browser may be.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
			<item>
				<title>Emacs Windows Installation</title>
				<link>https://alokregmi.com/emacs/emacs-windows-installation/</link>
				<pubDate>Wed, 12 Aug 2020 12:51:30 +0545</pubDate>
				<guid>https://alokregmi.com/emacs/emacs-windows-installation/</guid>
				<description>&lt;h2 id=&#34;problems-with-installing&#34;&gt;Problems with installing&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Not having msys2 so that pdftools can&amp;rsquo;t build [install msys]&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Not having mingw so that sqlite can&amp;rsquo;t build for org-roam [choco install mingw]&#xA;Don&amp;rsquo;t even have to do that. The mingw is installed by msys2. So go to mysys2:&#xA;there will be folder named mingw64. Add it&amp;rsquo;s bin to the PATH.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   pacman -Syu&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   pacman -S base-devel&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   pacman -S mingw-w64-x86_64-toolchain&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   pacman -S mingw-w64-x86_64-zlib&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   pacman -S mingw-w64-x86_64-libpng&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   pacman -S mingw-w64-x86_64-poppler&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   pacman -S mingw-w64-x86_64-imagemagick&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Then find a version that supports modules : emax64. This is a well off&#xA;version and has binaries in different places and things like that because it&#xA;tries providing it&amp;rsquo;s own configuration.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Helm-rg didn&amp;rsquo;t work for me. So, I installed helm-ag and used rg&amp;rsquo;s executable with&#xA;it. All is in config file.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Helm-rg will try to say projectile to add itself as well so, don&amp;rsquo;t use +fuzzy&#xA;tag with helm.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
			</item>
			<item>
				<title>Emacs Completion</title>
				<link>https://alokregmi.com/emacs/emacs-completion/</link>
				<pubDate>Wed, 12 Aug 2020 12:51:16 +0545</pubDate>
				<guid>https://alokregmi.com/emacs/emacs-completion/</guid>
				<description>&lt;h2 id=&#34;vim-s-omni-like-completion&#34;&gt;Vim&amp;rsquo;s omni like completion&lt;/h2&gt;&#xA;&lt;p&gt;Keybind&#x9;Description&#xA;C-x C-]&#x9;Complete etags&#xA;C-x C-f&#x9;Complete file path&#xA;C-x C-k&#x9;Complete from dictionary/keyword&#xA;C-x C-l&#x9;Complete full line&#xA;C-x C-o&#x9;Invoke complete-at-point function&#xA;C-x C-n&#x9;Complete next symbol at point&#xA;C-x C-p&#x9;Complete previous symbol at point&#xA;C-x C-s&#x9;Complete snippet&#xA;C-x s&#x9;Complete spelling suggestions&lt;/p&gt;</description>
			</item>
			<item>
				<title>Emacs Hugo Blogging</title>
				<link>https://alokregmi.com/braindump/2020/04/emacs-hugo-blogging/</link>
				<pubDate>Sun, 26 Apr 2020 04:53:19 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/04/emacs-hugo-blogging/</guid>
				<description>&lt;p&gt;:ID:       0dacbf0d-550d-4db9-8e15-6ffcede1107c&lt;/p&gt;&#xA;&lt;h2 id=&#34;hugo-blogging&#34;&gt;Hugo blogging&lt;/h2&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;../../ox-hugo/_20200426_045146screenshot.png&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;Liked themes:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Meme theme&lt;/li&gt;&#xA;&lt;li&gt;Harbor&lt;/li&gt;&#xA;&lt;li&gt;Cortex &amp;ndash;JethroKuan&lt;/li&gt;&#xA;&lt;li&gt;Hello friend ng rhazdon&lt;/li&gt;&#xA;&lt;li&gt;Beautiful Hugo&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;!--list-separator--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Blogging org mode Font&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!--list-separator--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Font: Source Code Pro : big size : Looks amazing: Is in google fonts as well&lt;/p&gt;&#xA;&lt;p&gt;//fonts.googleapis.com/css?family=Roboto+Slab:700,300,400|Source+Code+Pro:500&#xA;//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!--list-separator--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Normalize css : I don&amp;rsquo;t know what it does but looks pretty cool with all these stars on github.&lt;/p&gt;&#xA;&lt;p&gt;I think I have a faint idea now about what it does. It actually makes sure all&#xA;line heights and stuffs look all the same whatever the browser may be.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
			<item>
				<title>Emacs Shortcuts</title>
				<link>https://alokregmi.com/braindump/2020/04/emacs-shortcuts/</link>
				<pubDate>Sun, 19 Apr 2020 16:17:16 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/04/emacs-shortcuts/</guid>
				<description>&lt;h2 id=&#34;emacs-shortcuts&#34;&gt;Emacs Shortcuts&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Spc f d &amp;ndash;&amp;gt; search for files in dired&lt;/li&gt;&#xA;&lt;li&gt;Spc : &amp;ndash;&amp;gt; main command&lt;/li&gt;&#xA;&lt;li&gt;Spc g s &amp;ndash;&amp;gt; git status&lt;/li&gt;&#xA;&lt;li&gt;Spc n n &amp;ndash;&amp;gt;  Capture template&lt;/li&gt;&#xA;&lt;li&gt;Spc n a &amp;ndash;&amp;gt; agenda view&lt;/li&gt;&#xA;&lt;li&gt;Vim commands&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Ctrl up , down &amp;ndash;&amp;gt; go up and down in file&lt;/li&gt;&#xA;&lt;li&gt;q [a-z] &amp;ndash;&amp;gt; record a macro&lt;/li&gt;&#xA;&lt;li&gt;Shift &amp;raquo; &amp;ndash;&amp;gt; indent in code&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Evil snipe:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;s ch : go to ch ; same as f but more letters&lt;/li&gt;&#xA;&lt;li&gt;gc : to comment using evil&lt;/li&gt;&#xA;&lt;li&gt;gs [annotation] &amp;ndash;&amp;gt; to go to lines directly like vimium ease&lt;/li&gt;&#xA;&lt;li&gt;dii &amp;ndash;&amp;gt; delete inside indentation&lt;/li&gt;&#xA;&lt;li&gt;dik &amp;ndash;&amp;gt; delete inside plus a line above&lt;/li&gt;&#xA;&lt;li&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;backlinks&#34;&gt;Backlinks&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;../../braindump/2020/04/emacs-hugo-blogging/&#34;&gt;Emacs Hugo Blogging&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
			<item>
				<title>Emacs Completion</title>
				<link>https://alokregmi.com/braindump/2020/04/emacs-completion/</link>
				<pubDate>Sun, 19 Apr 2020 16:00:42 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/04/emacs-completion/</guid>
				<description>&lt;h2 id=&#34;vim-s-omni-like-completion&#34;&gt;Vim&amp;rsquo;s omni like completion&lt;/h2&gt;&#xA;&lt;p&gt;Keybind&#x9;Description&#xA;C-x C-]&#x9;Complete etags&#xA;C-x C-f&#x9;Complete file path&#xA;C-x C-k&#x9;Complete from dictionary/keyword&#xA;C-x C-l&#x9;Complete full line&#xA;C-x C-o&#x9;Invoke complete-at-point function&#xA;C-x C-n&#x9;Complete next symbol at point&#xA;C-x C-p&#x9;Complete previous symbol at point&#xA;C-x C-s&#x9;Complete snippet&#xA;C-x s&#x9;Complete spelling suggestions&lt;/p&gt;</description>
			</item>
			<item>
				<title>Emacs Tramp</title>
				<link>https://alokregmi.com/braindump/2020/04/emacs-tramp/</link>
				<pubDate>Sun, 19 Apr 2020 16:00:25 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/04/emacs-tramp/</guid>
				<description>&lt;h2 id=&#34;tramp-mode-for-sshing&#34;&gt;Tramp mode for sshing&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://willschenk.com/articles/2020/tramp%5Ftricks/&#34;&gt;Emacs Tramp tricks&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;C-x C-f /ssh:root@ssb.willschenk.com:/etc/host&#xA;This command will ssh into it and now projects can be browsed into emacs as if&#xA;it were right here on my local machine.&#xA;C-x C-f also need not be done since I have bound it to Spc-Spc.&#xA;C-x C-f /sudo::/etc/hosts : edit file as sudo&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;!--list-separator--&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Also has some tips for docker&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
			<item>
				<title>LISP</title>
				<link>https://alokregmi.com/braindump/2020/04/lisp/</link>
				<pubDate>Sun, 19 Apr 2020 16:00:24 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/04/lisp/</guid>
				<description>&lt;h2 id=&#34;major-points-to-remember&#34;&gt;Major points to remember&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;LET doesn&amp;rsquo;t let you refer to previous variables, so you need to use LET* for that.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;(progn do_this do_that) &amp;ndash;&amp;gt; multiple things to do&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;setting variables: (setq var-name value)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Live Demo&#xA;(write-line &amp;ldquo;single quote used, it inhibits evaluation&amp;rdquo;)&#xA;(write &amp;lsquo;(* 2 3))&#xA;(write-line &amp;quot; &amp;ldquo;)&#xA;(write-line &amp;ldquo;single quote not used, so expression evaluated&amp;rdquo;)&#xA;(write (* 2 3))&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;require &amp;rsquo;elm &amp;ndash;&amp;gt; way of loading a library&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;(1 2 3 4) acts as if 1 is a function here so for a list we say &amp;lsquo;(1 2 3 4) so&#xA;it acts as a literal rather than function and it&amp;rsquo;s arguments.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
	</channel>
</rss>
