Skip to content

natsu-anon/.emacs.d

Repository files navigation

Windows Setup

  1. download (or use MSYS2 for the 64-bit goodness? wow.)
  2. Set wherever you clone this repo to as the $HOME environment variable, traditionally in C:\Users\Your Username\
  • best way:
    1. run cmd as administrator
    2. run setx home "C:\Users\Your Username"
  1. Add the emacs bin to your $PATH if you want to be able to use it from the command line (mb yes, mb no)
  2. Create a shortcuts to launch emacs as a daemon, set it's target to "Drive:\path\to\emacs\bin\runemacs.exe" --daemon
  3. Create a shortcuts to launch the emacs client, set it's target to "Drive:\path\to\emacs\bin\emacsclientw.exe" -n -c
  4. After that you can do sexiness like adding it to your contextual open menu (use the client, it's fast af)
  5. run all-the-icons-install-fonts inside emacs, then install the fonts manually (how it is).

~/.emacs.d/init.el

(load-file "~/.emacs.d/config.el")
(load-file "~/.emacs.d/local.el")
;; (load-file "~/.emacs.d/gdscript.el") IF YOU WANT GDSCRIPT-MODE

Which will load config.el, the actual config, and local.el, local settings (which I use for looks). Why like this? It lets all the custom-set-variables and such accumulate in the init file and it doesn't get shared in the repo (anymore).

In order to get icons working you MUST run all-the-icons-install-fonts, if you're on windows it just downloads the fonts so you have to manually install them.

example local.el

(load-theme 'doom-monokai-classic t)
;; run menu-set-font to see the font menu.  Use describe-font <RET> to see the font being used
(add-to-list 'default-frame-alist '(font . "Cascadia Mono-10.0"))
(set-face-attribute 'default t :font "Cascadia Mono-10.0")

;; maximize initial frame
;; (add-hook 'window-setup-hook 'toggle-frame-maximized t)
(add-to-list 'default-frame-alist '(fullscreen . maximized)) ;; works for clients as well

USING CYGWIN AS SHELL ON WINDOWS

Include the following in local.el

(setq shell-file-name "c:/cygwin64/bin/bash")
(setq explicit-shell-file-name shell-file-name)
(setq explicit-bash-args `("--noediting" "-i"))

UPDATING PACKAGES

Don't do it automatically, packages change. HOWTO:

  1. <M-x> package-list-packages any packages available to upgrade will be shown.
  2. Mark pacakges to update with U
  3. Execute the upgrade with x

Project .gitignore

add the following to your projects' .gitignore to ignore all the emacs backups and such:

# emacs stuff
\#*\#
.\#*
*~
.dir-locals.el

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published