The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

My Basic Emacs Setup Process

TODO: Pull subtitle into page object

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

Installed emacs with:

code_start_default_section code_end_default_section

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

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

My Basic Emacs Setup Process

-- p

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

-- p

Installed emacs with:

-- code/
-- shell

brew install emacs

-- /code

-- p

then ran this to get Spacemacs config stuff in place

-- code/

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

-- /code

-- p

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

-- p

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

-- p

Edit ~/.spacemacs

-- p

Added all this to `dotspacemacs-configuration-layers`

-- p

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

-- p

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

-- p

Instead, I used this in iTerm2

-- p

Preferences > Profiles > Keys > Left Option Key

-- p

And set it to: `Esc+`

-- p

(Did `Esc+` instead of `Meta` based on the <<link|emacs wiki|https://www.emacswiki.org/emacs/MetaKeyProblems#h5o-15)>>

-- p

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

-- p

e.g.

-- code/

or this to see the output that prints to the console

-- /code

-- p

#_+begin_src js :results output
  ```

-- p

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

-- p

(This did not require adding the <<link|Themes Megabuck layer|https://develop.spacemacs.org/layers/+themes/themes-megapack/README.html)>>

-- p

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

-- code/

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

-- /code

-- p

Added deft for nvalt style stuff (hopefully) by adding

-- code/

deft

-- /code

-- p

to

-- code/

dotspacemacs-configuration-layers

-- /code

-- p

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

-- p

Set:

-- code/
-- lisp

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

-- /code

-- p

To

-- code/
-- lisp

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

-- /code

-- p

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

-- p

The `(require 'org-tempo)` was what got it working so you can type `<s` then TAB as a snippet that auto-expands into a source block

-- p

Via <<link|this](https://github.com/syl20bnr/spacemacs/issues/11798#issuecomment-504739959) and the note that I missed in [the docs|https://orgmode.org/manual/Structure-Templates.html>>

-- p

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

-- p

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

-- code/

(compleseus :variables
              compleseus-engine 'selectrum)

-- /code

-- p

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)

-- p

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

-- p

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

-- p

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

-- p

Added

-- code/

shell-scripts

-- /code

-- p

to

-- code/

dotspacemacs-configuration-layers

-- /code

-- p

This lets literate programming with with:

-- code/

#_+begin_src bash 
  echo "test"

-- /code

-- p

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

-- p

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.

-- p

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.

-- p

installed ipython via `pip3 install ipython`

-- p

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


-- categories
-- Emacs 

-- metadata
-- date: 2022-05-16 22:46:13
-- id: 29h2dvkw
-- status: scratch
-- type: post
-- SCRUBBED_NEO: false
-- site: aws