Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

My Basic Emacs Setup Process

There are notes on what I did to setup emacs via spacemacs on my mac (lots of macs there)

Installed emacs with:

Code

brew install emacs

then ran this to get Spacemacs config stuff in place

Code

git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d

via: https://www.spacemacs.org/#

Setup to use 'vim' style in the initial setup (I don't remember the text of it)

Edit ~/.spacemacs

Added all this to `dotspacemacs-configuration-layers`

- org - for org mode - python - for python to work in org mode via babble - javascript - for javascript to work in org mode via babble

Tried `osx` to get the option key to work as the meta key but it didn't work.

Instead, I used this in iTerm2

Preferences < Profiles < Keys < Left Option Key

And set it to: `Esc+`

(Did `Esc+` instead of `Meta` based on the emacs wiki

To get javascript code blocks working in code blocks use `js` instead of `javascript`

e.g.

Code

or this to see the output that prints to the console

#_+begin_src js :results output ```

Added `afternoon` as the first item under `dotspacemacs-themes` to use that theme

(This did not require adding the Themes Megabuck layer

Considering: changing these from `SPC` to `,` to set the leader to the comma:

Code

dotspacemacs-leader-key
  dotspacemacs-emacs-leader-key

Added deft for nvalt style stuff (hopefully) by adding

Code

deft

to

Code

dotspacemacs-configuration-layers

NOTE: I've removed deft, going with helm for getting the grimoire lined up.

Set:

Code

(defun dotspacemacs/user-config ()
      ...
  )

To

Code

(defun dotspacemacs/user-config ()
    (setq org-confirm-babel-evaluate nil)
    (setq deft-directory "~/Desktop/Grimoire")
    (require 'org-tempo)
  )

NOTE: I removed deft so this is no longer in play. I'm using helm directly now

The `(require 'org-tempo)` was what got it working so you can type `

Tried removing `helm` and added `compleseus` to `dotspacemacs-configuration-layers`, but switched back to helm

This is what I had in the `define dotspacemacs/user-config` section

Code

(compleseus :variables
              compleseus-engine 'selectrum)

This is a goal to get a dynamic completion setup for `comlpeting-read` in the mini buffer to use for the grimoire (with the dynamic update it doesn't seem like there's a way to use an external search)

That didn't work and I got helm to work so I remove selectrum.

Note: installed `brew install ripgrep` to see about using `rg` with: https://manueluberti.eu/emacs/2020/02/22/ripgrepping-with-helm/

Not actually doing that, but keeping it here as a note for the process

Added

Code

shell-scripts

to

Code

dotspacemacs-configuration-layers

This lets literate programming with with:

Code

#_+begin_src bash 
  echo "test"

There is a problem with `~/.emacs.d/.cache/savehist` getting huge.

Ater messing around with a bunch of big files it grew to 500+MB. That was causing Emacs/Spacemacs to hang repeatedly for several seconds.

Deleteing that files seems to have fixed things, but I still need to figure out how to set it so that it doesn't become a problem.

installed ipython via `pip3 install ipython`

tried to do that to get outptu moving faster in the emacs terminal window, but it didn't work. just doing stuff in org mode source blocks for now