Getting Websters

More glorious language

Published July 30, 2020 #emacs, #howto, #language

A few years ago I read a great post about the value of a good dictionary, which I installed on my laptop and then promptly forgot about. The post is very moving, and I recommend checking it out.

It was recently mentioned on the planet emacs blog circuit and so I thought I'd document how to get it up and running on my laptop.

Also I don't understand what the appeal of John McPhee's writing, I've tried a few of his books but found them all so plodding. Perhaps it's because I'm not savoring the sentences enough…

Get the dictionary

We are going to download the dictionary from J Somer's S3 bucket. Uncompress this thing (which looks like an MacOS Application) then uncompress the dictionary inside, and move it to a newly created ~/.stardict/dic directory.

mkdir -p ~/.stardict/dic
cd /tmp
wget https://s3.amazonaws.com/jsomers/dictionary.zip
unzip dictionary.zip
tar -xjf dictionary/stardict-dictd-web1913-2.4.2.tar.bz2 
mv stardict-dictd-web1913-2.4.2 ~/.stardict/dic/

Install stardict

Using debian, you need to install the sdcv command package. Emacs will talk to this once we are all up and running.

sudo apt install sdcv -y

Test this with sdcv billow or whatever word you fancy.

Install sdvc-mode

cd ~/.emacs.d
wget https://raw.githubusercontent.com/gucong/emacs-sdcv/master/sdcv-mode.el

And then in your .emacs file:

(load-file "~/.emacs.d/sdcv-mode.el")
(global-set-key (kbd "C-c s") 'sdcv-search)

This binds C-c s to search, or you can use M-x sdcv-search to look up the word you want – or a word that you lack the power or knowledge of.

References

  1. http://jsomers.net/blog/dictionary

  2. https://irreal.org/blog/?p=9035

  3. http://mbork.pl/2017-01-14_I'm_now_using_the_right_dictionary

Read next

Next Post: Using Askgit

See also

Upgrading emacs on debian

fixing crashes

Been playing with elfeed on Emacs 26.1 on buster and it keeps crashing. I think for font related reasons. So lets follow the Emacs Wiki Instructions to upgrade to emacs-snapshots and see if that helps. Add the snap shot repository. Make sure you have the tools installed so that apt can do it's internet thing. sudo apt-get install software-properties-common sudo apt-get update Add the signing key: wget -q http://emacs.

Read more

Using Org Mode in Hugo

emacs everywhere

I'm learning org-mode and I don't really know what I'm doing, but this is how I'm trying out writing hugo posts with it. I'm used to markdown, so this is a what's different post. Some minor org-mode tweaks For some reason when org-mode starts it doesn't softwrap the paragragh text. I like to have it soft-wrapped so everything is on the screen if it's not collapsed. Also having some nice indentation makes things visually cleaner, so add this snippet to your ~/.

Read more

Setting up SSB-Pub Server

and migrate your profile

I wanted to move my ssb installation over to a new computer, and the easiest way was to setup a pub server, invite the old and the new computer to the pub, and then swap out the keys. Here's how to do it. Overview Create a server & name Install docker Create the docker image Setup directories, config, and easy shell commands Start up a container Publish yourself as a pub Connect your client Create a server I'm using debian 10 on digital ocean, but I'll let you get the system on the internet.

Read more