From 59bf0b51d1646da08c372a0ac4471991fa91c9ac Mon Sep 17 00:00:00 2001 From: Dante Catalfamo Date: Fri, 26 Mar 2021 15:00:57 -0400 Subject: align-columns: Correct some wording, add cover image --- content/posts/WIP-emacs-align-columns/cover.png | Bin 0 -> 127635 bytes content/posts/WIP-emacs-align-columns/index.org | 16 +++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 content/posts/WIP-emacs-align-columns/cover.png (limited to 'content') diff --git a/content/posts/WIP-emacs-align-columns/cover.png b/content/posts/WIP-emacs-align-columns/cover.png new file mode 100644 index 0000000..446ad1c Binary files /dev/null and b/content/posts/WIP-emacs-align-columns/cover.png differ diff --git a/content/posts/WIP-emacs-align-columns/index.org b/content/posts/WIP-emacs-align-columns/index.org index 1aea7fd..c41a468 100644 --- a/content/posts/WIP-emacs-align-columns/index.org +++ b/content/posts/WIP-emacs-align-columns/index.org @@ -7,15 +7,17 @@ #+SLUG: #+SUMMARY: -I've been writing a lot of ruby GraphQL queries and mutations at work -recently, and frequently run into a situation where I have to align -many columns of text by hand. I figured this isn't a very unique -problem, and that in the infinite wisdom of Emacs developers over the -last couple decades, someone must have included a piece of code to -take care of exactly this kind of situation. +#+ATTR_HTML: :alt Before and after columns aligned +#+ATTR_HTML: :title Before and after aligned columns +[[file:cover.png]] + +I've been writing a lot of GraphQL resolvers in ruby at work recently, +and frequently run into a situation where I have to align many columns +of text by hand. I figured this isn't a very unique problem, and that +there was probably already some code within Emacs to handle it. As it turns out I was correct in my assumption. There's an excellent -built in package called =align.el= that takes care of just that. +built-in package called =align= that takes care of just that. Many of the features of the =align= package are mode-specific, but I just wanted a function that can align columns regardless of which mode -- cgit v1.2.3