From 3401e22e964ef6902c609d63ce5a16a3fa061eda Mon Sep 17 00:00:00 2001 From: Dante Catalfamo Date: Thu, 18 Jun 2020 21:02:40 -0400 Subject: Rename macos emacsclient post, update image --- .../posts/how-to-stop-mg-from-littering/index.org | 53 +++++++++++++++++++++ .../mg trash file.png | Bin 0 -> 4222 bytes content/posts/stop-mg-from-making-a-mess/index.org | 53 --------------------- .../stop-mg-from-making-a-mess/mg trash file.png | Bin 4222 -> 0 bytes .../macos emacsclient.png | Bin 108919 -> 111323 bytes 5 files changed, 53 insertions(+), 53 deletions(-) create mode 100644 content/posts/how-to-stop-mg-from-littering/index.org create mode 100644 content/posts/how-to-stop-mg-from-littering/mg trash file.png delete mode 100644 content/posts/stop-mg-from-making-a-mess/index.org delete mode 100644 content/posts/stop-mg-from-making-a-mess/mg trash file.png (limited to 'content') diff --git a/content/posts/how-to-stop-mg-from-littering/index.org b/content/posts/how-to-stop-mg-from-littering/index.org new file mode 100644 index 0000000..ecce792 --- /dev/null +++ b/content/posts/how-to-stop-mg-from-littering/index.org @@ -0,0 +1,53 @@ +#+TITLE: How To Stop mg From Littering +#+DATE: 2020-06-18T16:04:33-04:00 +#+DRAFT: false +#+DESCRIPTION: +#+TAGS[]: openbsd emacs mg +#+KEYWORDS[]: +#+SLUG: +#+SUMMARY: + +#+ATTR_HTML: :alt mg trash file +#+ATTR_HTML: :title mg trash file +[[file:mg%20trash%20file.png]] + +If you've been an OpenBSD user for any period of time, you probably +know what =mg= is. For those who don't know, =mg= stands for +MicroGnuEmacs. It's a small clone of Emacs maintained by the OpenBSD +team that's included with the base system. + +Being an Emacs user, I love that =mg= is part of the OpenBSD base +system. It's great to have an editor that has familiar keybinds on a +system that I haven't had the time to install any packages on. It also +has (in my opinion), more useful features than =vi=, like =auto-fill-mode= +and =dired=. + +Despite all of the excellent things it emulates from Emacs, it also +emulates a couple behaviours from Emacs that I find a little +annoying. One of those behaviours is leaving backup files everywhere +when editing. Backup files have the original file name, with a tilde +appended to the end. So if you're editing =pf.conf=, =mg= will +automatically create a backup file called =pf.conf~= in the same +directory. + +Backup files can be incredibly useful if you same a mistake while +editing and you want to see what the original file looked like, but +after a while of editing files, seeing your =/etc/= littered with +files ending in =~= can be a little annoying. + +Fortunately the creators of =mg= are aware of this issue and have +provided a way to deal with it. + +Edit the =.mg= in your home directory, or create it if it doesn't +exist. Then add the following line + +#+BEGIN_SRC +backup-to-home-directory +#+END_SRC + +That's it. Now =mg= will still create backup files, but it will save +them to =~/.mg.d/= instead of the directory of the file you're +editing. It saves the file as the full path to the original file, with +the forward slashes replaced by exclamation marks. So if you were +editing =/etc/pf.conf=, the backup file will be saved as +=~/.mg.d/!etc!pf.conf~=. diff --git a/content/posts/how-to-stop-mg-from-littering/mg trash file.png b/content/posts/how-to-stop-mg-from-littering/mg trash file.png new file mode 100644 index 0000000..c94c337 Binary files /dev/null and b/content/posts/how-to-stop-mg-from-littering/mg trash file.png differ diff --git a/content/posts/stop-mg-from-making-a-mess/index.org b/content/posts/stop-mg-from-making-a-mess/index.org deleted file mode 100644 index ecce792..0000000 --- a/content/posts/stop-mg-from-making-a-mess/index.org +++ /dev/null @@ -1,53 +0,0 @@ -#+TITLE: How To Stop mg From Littering -#+DATE: 2020-06-18T16:04:33-04:00 -#+DRAFT: false -#+DESCRIPTION: -#+TAGS[]: openbsd emacs mg -#+KEYWORDS[]: -#+SLUG: -#+SUMMARY: - -#+ATTR_HTML: :alt mg trash file -#+ATTR_HTML: :title mg trash file -[[file:mg%20trash%20file.png]] - -If you've been an OpenBSD user for any period of time, you probably -know what =mg= is. For those who don't know, =mg= stands for -MicroGnuEmacs. It's a small clone of Emacs maintained by the OpenBSD -team that's included with the base system. - -Being an Emacs user, I love that =mg= is part of the OpenBSD base -system. It's great to have an editor that has familiar keybinds on a -system that I haven't had the time to install any packages on. It also -has (in my opinion), more useful features than =vi=, like =auto-fill-mode= -and =dired=. - -Despite all of the excellent things it emulates from Emacs, it also -emulates a couple behaviours from Emacs that I find a little -annoying. One of those behaviours is leaving backup files everywhere -when editing. Backup files have the original file name, with a tilde -appended to the end. So if you're editing =pf.conf=, =mg= will -automatically create a backup file called =pf.conf~= in the same -directory. - -Backup files can be incredibly useful if you same a mistake while -editing and you want to see what the original file looked like, but -after a while of editing files, seeing your =/etc/= littered with -files ending in =~= can be a little annoying. - -Fortunately the creators of =mg= are aware of this issue and have -provided a way to deal with it. - -Edit the =.mg= in your home directory, or create it if it doesn't -exist. Then add the following line - -#+BEGIN_SRC -backup-to-home-directory -#+END_SRC - -That's it. Now =mg= will still create backup files, but it will save -them to =~/.mg.d/= instead of the directory of the file you're -editing. It saves the file as the full path to the original file, with -the forward slashes replaced by exclamation marks. So if you were -editing =/etc/pf.conf=, the backup file will be saved as -=~/.mg.d/!etc!pf.conf~=. diff --git a/content/posts/stop-mg-from-making-a-mess/mg trash file.png b/content/posts/stop-mg-from-making-a-mess/mg trash file.png deleted file mode 100644 index c94c337..0000000 Binary files a/content/posts/stop-mg-from-making-a-mess/mg trash file.png and /dev/null differ diff --git a/content/posts/using-emacsclient-on-macos/macos emacsclient.png b/content/posts/using-emacsclient-on-macos/macos emacsclient.png index 371fc2f..0ac0054 100644 Binary files a/content/posts/using-emacsclient-on-macos/macos emacsclient.png and b/content/posts/using-emacsclient-on-macos/macos emacsclient.png differ -- cgit v1.2.3