From a558e1938627bc475d78047c8a5a2a23b9eee3f5 Mon Sep 17 00:00:00 2001 From: mounderfod Date: Tue, 18 Jul 2023 09:19:40 +0100 Subject: Add more tags --- _posts/2023-07-11-enter-the-fediverse.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2023-07-11-enter-the-fediverse.md b/_posts/2023-07-11-enter-the-fediverse.md index 3091ef1..21cf55d 100644 --- a/_posts/2023-07-11-enter-the-fediverse.md +++ b/_posts/2023-07-11-enter-the-fediverse.md @@ -2,7 +2,7 @@ layout: post title: Enter The Fediverse date: 2023-07-11T16:56:14.690Z -tags: [fediverse, tech, mastodon, lemmy, reddit] +tags: [fediverse, tech, mastodon, lemmy, reddit, social media] --- If you haven't heard, Reddit is in [a bit of a pickle](https://www.nbcnews.com/tech/tech-news/reddit-protest-blackout-ceo-steve-huffman-moderators-rcna89544). In short, they have changed their API pricing in such a way as to effectively make it impossible for 3rd party apps to continue, presumably in order to improve that sweet ad revenue (a move probably inspired by [Twitter's](https://www.engadget.com/twitter-shut-off-its-free-api-and-its-breaking-a-lot-of-apps-222011637.html)). In any case, the lack of Reddit for a few days (and my general dissatisfaction with the platform at that time) led me to explore alternatives, which led me to [Lemmy](https://join-lemmy.org), a finding which would cause me to dive much deeper into a much wider thing - the Fediverse. This article will explore this process and how I've found it so far. -- cgit 1.4.1-2-gfad0 From 293cb248b7d6a493e24e7c06de83283f106e028a Mon Sep 17 00:00:00 2001 From: mounderfod Date: Tue, 18 Jul 2023 10:05:57 +0100 Subject: Add new post about Emacs --- _posts/2023-07-18-using-emacs.md | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 _posts/2023-07-18-using-emacs.md diff --git a/_posts/2023-07-18-using-emacs.md b/_posts/2023-07-18-using-emacs.md new file mode 100644 index 0000000..6fb0939 --- /dev/null +++ b/_posts/2023-07-18-using-emacs.md @@ -0,0 +1,55 @@ +--- +layout: post +title: Using Emacs +date: 2023-07-18T09:27:00Z +tags: [webdev, ide, emacs, text editor, development] +--- + +This post is being written in [Emacs](https://www.gnu.org/software/emacs/) :) + +### What? + +Emacs is, according to its own website: + +> "An extensible, customizable, free/libre text editor — and more." + +Basically, it's one of the oldest text editors to exist, is (technically) entirely keyboard-based, and manages to combine simplicity with power. In short, it's great and I'm going to talk about it now. + +### Why? + +Why am I using Emacs? Well, there's a few reasons: + +- I'd heard of it before and it sounded cool +- It's complex enough that it would present an interesting learning curve, but not so difficult as to discourage me +- It's useful for editing posts and HTML like this +- It ships with Tetris built in (need I say more?) + +### How? + +I went to the website and downloaded it. +My laptop currently uses Windows, and Emacs is made by GNU so as expected I was berated for my choice of OS: + +> "To improve the use of proprietary systems is a misguided goal. Our aim, rather, is to eliminate them." + +But I wasn't going to concern myself with GNU's plans for world domination; that's a problem for another day. The install was fairly simple, like any other application, and upon running the program I am greeted with a pleasant menu screen: + +![The Emacs welcome page](https://cdn.discordapp.com/attachments/838048982873538572/1130779711820267570/image.png) + +Now it was time for me to learn how to use Emacs. +Emacs is primarily keyboard-based, as it was developed at a time where not all computers had GUIs at all, let alone mice to interact with them. As such, and also due to its age, it has its own set of keybinding patterns which are overall very different to that of most applications. For example, saving a file in MS Word is `Ctrl-S`, while in Emacs it is `C-x C-s`, which means `Ctrl-x` followed by `Ctrl-S`. You'll notice that in this example, two keybindings need to be pressed to perform one action. This is very common in Emacs, as there are lots of commands and not many keys, and there are even some commands that don't have keybindings and must be invoked by pressing `M-x` (`M` meaning `Alt`) and then typing the command name out. + +This was all a bit complex for me to understand at first, but I quickly got the hang of it (as I had done with the more standard keybinding patterns that existed elsewhere in the computing world). + +### Customising Emacs + +Now that I had gotten the grips of Emacs' basic usage, I needed to tailor it to my own needs. +My plan was to use Emacs for editing Markdown posts (such as this one) or HTML files, and my website is hosted on GitHub, so I needed something to cover both bases. + +For the latter, there was already Emacs' `VersionControl`, but this was a generic version control tool and wasn't tailored to the specifics of Git. Therefore, I did some googling and came across [Magit](https://magit.vc). A few more googles educated me in how to add the package repository it was in and how to then install the package (`M-x package-install RET magit RET`), and I was quickly able to clone, commit, and push to the website repository. Perfect! + +Now I needed to improve my Markdown editing experience. `.md` files are text, and so I could edit them as normal in Emacs, but then I wouldn't be able to enjoy things such as syntax highlighting and easy access to various formatting options without typing them out manually. Again, a quick google found [markdown-mode](https://github.com/jrblevin/markdown-mode), and within moments it was installed. The package adds a major mode to Emacs - Emacs is mode-based, meaning that there are modes of editing which result in different functionality of the editor for different purposes - in this case, the markdown mode (enabled with `M-x markdown-mode`) provides syntax highlighting and commands to automatically paste in the syntax for links, etc. + +![Me editing this very post in Emacs with syntax highlighting](https://cdn.discordapp.com/attachments/838048982873538572/1130784754657153024/image.png) + +And that was it! I had installed, learned to use, and configured Emacs and could now use it to edit blog posts for this very website (or Gopher phlog, if you're reading it on that mirror). +Next I shall get it set up for developing my Python/Java projects - I'll keep you posted! -- cgit 1.4.1-2-gfad0 From 52e5fbfd51a09b1370ef59b650743da7b8f82cef Mon Sep 17 00:00:00 2001 From: mounderfod Date: Tue, 18 Jul 2023 11:11:36 +0200 Subject: Fix config option --- _config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_config.yml b/_config.yml index 7fad49d..f4989ac 100644 --- a/_config.yml +++ b/_config.yml @@ -27,6 +27,8 @@ baseurl: "/" # the subpath of your site, e.g. /blog url: "https://mounderfod.online" # the base hostname & protocol for your site, e.g. http://example.com github_username: mounderfod +future: true + # Build settings plugins: - jekyll-feed -- cgit 1.4.1-2-gfad0 From c18f3c04f89e03fe8c6c53b5ae7f09f8116d790a Mon Sep 17 00:00:00 2001 From: mounderfod Date: Tue, 18 Jul 2023 11:14:07 +0200 Subject: CSS fixes (what a surprise) --- assets/index.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/index.css b/assets/index.css index da1c08a..c4a6157 100644 --- a/assets/index.css +++ b/assets/index.css @@ -35,6 +35,10 @@ a > :is(p, h1, h2, h3, h4, h5, h6) { color: -webkit-link; } +img { + max-width: 100%; +} + marquee { width: 100%; } -- cgit 1.4.1-2-gfad0 From 710d4ced946325ab311b85f5917a07385f788428 Mon Sep 17 00:00:00 2001 From: mounderfod Date: Tue, 18 Jul 2023 11:26:10 +0200 Subject: CSS fixes again, so tiring --- about.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/about.markdown b/about.markdown index db51417..4ddcab5 100644 --- a/about.markdown +++ b/about.markdown @@ -4,7 +4,7 @@ title: About permalink: /about/ --- -# ABOUT +

About

Hello! :D My name is Noah, but I go by **mounderfod**. I am interested in music, programming and video games. -- cgit 1.4.1-2-gfad0 From 49ea2e916c61cd8ab120814594aea2223450a421 Mon Sep 17 00:00:00 2001 From: mounderfod Date: Tue, 18 Jul 2023 11:28:07 +0200 Subject: Guess I forgot how CSS works today --- about.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/about.markdown b/about.markdown index 4ddcab5..611acc5 100644 --- a/about.markdown +++ b/about.markdown @@ -4,7 +4,7 @@ title: About permalink: /about/ --- -

About

+

About

Hello! :D My name is Noah, but I go by **mounderfod**. I am interested in music, programming and video games. -- cgit 1.4.1-2-gfad0 From 8e8fb3bb05bbf3ef4594ab09d941390e656958d6 Mon Sep 17 00:00:00 2001 From: mounderfod Date: Tue, 18 Jul 2023 11:31:53 +0200 Subject: Update about page --- about.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/about.markdown b/about.markdown index 611acc5..9870913 100644 --- a/about.markdown +++ b/about.markdown @@ -13,14 +13,16 @@ programming and video games. **Languages I code in:** Python, JS, Java (and C# by extension), Rust -## SOCIALS +

Socials

I primarily use the Fediverse: - [Lemmy](https://lemmy.sdf.org/u/mounderfod) - [Mastodon](https://mastodon.sdf.org/@mounderfod) - [Pixelfed](https://metapixl.com/i/web/profile/577395471914797016) +- [GNU social](http://osli.rf.gd/mounderfod) If you have any questions/messages: - **Discord**: @mounderfod +- **Email**: mounderfod+website 〈at〉 gmail.com -- cgit 1.4.1-2-gfad0 From 1261ea2a404f50abe6b9ab20b0f9c77003dcb414 Mon Sep 17 00:00:00 2001 From: mounderfod Date: Tue, 18 Jul 2023 11:32:38 +0200 Subject: Small formatting changes --- about.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/about.markdown b/about.markdown index 9870913..f0ea75a 100644 --- a/about.markdown +++ b/about.markdown @@ -25,4 +25,5 @@ I primarily use the Fediverse: If you have any questions/messages: - **Discord**: @mounderfod -- **Email**: mounderfod+website 〈at〉 gmail.com +- **Email**: mounderfod+website〈at〉gmail.com + -- cgit 1.4.1-2-gfad0