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.

Use with-temp-file To Write To A File In Emacs

TODO: Pull subtitle into page object

Quick example of how to write out to a file by making a temporary buffer. You write whatever contents you want to the tmp buffer which then outputs to the file and drops the temporary buffer when it's done.

code_start_default_section code_end_default_section

Debugging Stuff

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

        -- title

Use with-temp-file To Write To A File In Emacs

-- p

Quick example of how to write out to a file by making a temporary buffer. You write whatever contents you want to the tmp buffer which then outputs to the file and drops the temporary buffer when it's done.

-- code/
-- elisp

(with-temp-file "test-file.txt"
  (insert "here is some stuff")
  (insert "\n")
  (insert "and some more stuff")
  )

-- /code


-- categories
-- Emacs

-- metadata
-- date: 2022-06-20 01:53:50
-- id: 2aprekue
-- status: published
-- type: post
-- SCRUBBED_NEO: false
-- site: aws