Dotfiles/modules/emacs.lua
Ade Attwood b095833f8e refactor(emacs): move emacs config to be really minimal
Yea thats it, we are bringing back the use of emacs. This is very much the "why
choose" way and using the correct tool for the job.

I have now gone back to emacs for all the productivity / notes related stuff.
Code will still continue to be in neovim. The developer experience nvim brings
is really nice, the community around plugins is amazing, you can really get
your work done fast. What it does not have is org-mode, this is the feature of
emacs and I would like to go back to using it.

Emacs has now replaced todoist, obsidian and gmail web client. Singularly, I
think these tools are on par if not better sometimes that the emacs
replacement. However, together with org-link, this is where the power is. Being
able to quickly capture tasks that link back to emails is supper powerful.

The org-mode stuff is generally the same. It uses evil mode, so my fingers
don't get lost, Doom to make it look good. All the key bindings are the same,
it's just ripped out all the code and language support. The only code related
package is company so I can get completion on the roam links just like you do
in obsidian.

Email is powered by notmuch. I said this replaces the gmail web client,
however, it's really a couple of other too. The main benefit over have this is
you can have one inbox for multiple accounts. Having a single list for your
inbox is a grate way to keep track of everything. This will org capture and org
links works perfectly with the inbox zero flow, having the ability to file
things away not lose track of them is really nice.
2024-09-24 20:27:20 +01:00

26 lines
769 B
Lua

local git = require "lib.git"
local emacs_dir = os.getenv "HOME" .. "/.emacs.d"
if not configz.is_directory(emacs_dir .. "/straight") then
configz.directory(emacs_dir .. "/straight")
end
if not configz.is_file(emacs_dir .. "/init.el") then
configz.link(emacs_dir .. "/init.el", {
source = os.getenv "PWD" .. "/site-modules/core/files/emacs/init.el",
})
end
if not configz.is_directory(emacs_dir .. "/mbwatch") then
configz.link(emacs_dir .. "/mbwatch", {
source = os.getenv "PWD" .. "/site-modules/core/files/emacs/mbwatch",
})
end
if not configz.is_directory(emacs_dir .. "/straight/versions") then
configz.link(emacs_dir .. "/straight/versions", {
source = os.getenv "PWD" .. "/site-modules/core/files/emacs/straight/versions",
})
end