emacs/var/elfeed/db/data/e2/e2bd8d14c92f50b7359b9c82d28b098821747aa3
2022-01-03 12:49:32 -06:00

21 lines
5.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>If it wasnt for Emacs and other Linux tricks Ive learned, Id be happy with my office Mac. But Thats not how I do things. As it turns out, the transition from Linux to macOS wasnt as smooth as I thought. I have a lot of troubleshooting to cover, and I hope to do so in a couple of parts. Heres the first part of my recent adventures.</p>
<p>With my work responsibilities gravitating toward JAMF and remote Apple device support, an irony became clear: I havent used a Mac. 90% of my work was done on a PC with a VM that housed Emacs since I developed my org-mode routine. This came to light in a recent work meeting, and so it was decided. My main work machine now is a Mac.</p>
<p>I run Linux full time for my personal needs. Both my home Desktop, which I write this post on right now, and my Lenovo Thinkpad I take with me on trips run Linux Mint. I hope youll excuse me then for not knowing that you can turn on right-click on a magic mouse, or that you can copy-paste whole lines of code into the Terminal simply by dragging them. These sort of things become obvious only when you use a Mac day-to-day, which is what I spent my first couple of days on; getting myself to feel at home.</p>
<p>With the basics done and the Mac ready to do work<sup id="fnref:1"><a class="footnote-ref" href="https://helpdeskheadesk.net/tags/emacs/index.xml#fn:1">1</a></sup>, it was time for the main event: installing Emacs from Homebrew and run it naively. I still have the option of remoting into my PC with the VM on it and run Emacs in a Linux environment, but the fun is in trying new things.</p>
<p>I also had a new challenge to conquer. I wanted to keep my org files off the Mac. My personal org files are saved on a folder named “Personal,” which I only sync to my personal machines; this time though, I wanted <em>everything</em> off the hard drive. This included my “Archive” folder with its many (over 100) weekly org files containing my tasks and projects for work. Ive been using <a href="https://www.gnu.org/software/tramp/">TRAMP</a> regularly to access files at home on my Synology, so that was the solution I was aiming for.</p>
<p>After working out a newbie problem with Homebrew<sup id="fnref:2"><a class="footnote-ref" href="https://helpdeskheadesk.net/tags/emacs/index.xml#fn:2">2</a></sup>, I got Emacs installed. Next, I wrote the lines to load MELPA in my init, since I needed to install my packages before I could run my full settings file, which uses these packages.</p>
<p>I launched Emacs and was ready to start installing my familiar packages. Instead, I encountered my first issue: <code>Error retrieving: https://melpa.org/packages/archive-contents (error connection-failed "connect" :host "melpa.org" :service 443)</code> It took some research, but I found out that <code>(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")</code> solved that problem. I am not sure exactly why, but thats the solution that ended up working. Now that I was able to load MELPA, I started downloading the packages I needed one by one by looking into my <code>Emacs_settings.org</code> file, which I where I save my global Emacs settings with instructions.</p>
<p>Usually, I just copy over my Emacs packages over scp (usually in Emacs, over TRAMP already) and fix whatever issues remain from inside Emacs. This time though I wanted an independent setting file which will define a different path (one that would include the TRAMP syntax to dial back home) for my agenda folders. I thought it would also be a good idea to install the packages fresh instead of relying on packages that are working in Linux.</p>
<p>Ive encountered a couple of Mac issues that I wasnt prepared for along the way, but this is is where Ill pick up the story next time.</p>
<h2 id="footnotes">Footnotes</h2>
<section class="footnotes">
<hr />
<ol>
<li id="fn:1">
<p>One (obvious?) thing I want to mention is that remoting into a Windows computer with a Mac is a breeze. Microsoft Remote Desktop automatically launches the connected machine full-screen, and then its a simple two-finger swish to move back and forth. My Windows keyboard (its the Microsoft ergonomic design, which is why I keep it; otherwise Id switch to a Mac keyboard) makes it easy to switch back to “Windows Mode” in my head. But try to remote to a Mac from a Windows machine. Ugh. Unless you use VNC, which comes with its own bag of issues (not to mention security problems) you have to count on some third party software, and these have been a mixed bag of pain in the rear. <a class="footnote-backref" href="https://helpdeskheadesk.net/tags/emacs/index.xml#fnref:1">↩︎</a></p>
</li>
<li id="fn:2">
<p>Since all programs have to be installed under an admin account, I wrongly assumed Homebrew also needed to be installed this way. This later caused a bunch of permission problems and difficulties installing (brew) different packages. I found out about this problem with a friend and good ol' Brew doctor and fixed these permission issues. <a class="footnote-backref" href="https://helpdeskheadesk.net/tags/emacs/index.xml#fnref:2">↩︎</a></p>
</li>
</ol>
</section>