Last active
February 16, 2024 03:46
-
-
Save whynotavailable/c0913c61e6de52aa5f92082d70bacb89 to your computer and use it in GitHub Desktop.
emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'package) | |
(cond | |
((string-equal system-type "windows-nt") | |
(progn | |
(setq | |
ispell-program-name "C:\\ProgramData\\chocolatey\\bin\\hunspell.exe" | |
ispell-current-dictionary "en_US" | |
ispell-dictionary "en_US" | |
ispell-hunspell-dict-paths-alist | |
'( | |
("en_US" "C:\\Hunspell\\en_US.aff") | |
("default" "C:\\Hunspell\\default.aff")) | |
))) | |
) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) | |
(use-package markdown-mode | |
:ensure t | |
:mode ("README\\.md\\'" . gfm-mode) | |
:init (setq markdown-command "multimarkdown")) | |
(add-hook 'text-mode-hook 'visual-line-mode) | |
(dolist (hook '(text-mode-hook)) | |
(add-hook hook (lambda () (flyspell-mode 1)))) | |
(unless (fboundp 'package-activate-all) (package-initialize)) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(custom-safe-themes | |
'("3f1dcd824a683e0ab194b3a1daac18a923eed4dba5269eecb050c718ab4d5a26" default)) | |
'(package-selected-packages '(darcula-theme use-package))) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
) | |
(use-package zenburn-theme | |
:ensure t | |
:config | |
;; your preferred main font face here | |
(set-frame-font "JetBrains Mono-12")) | |
(load-theme 'zenburn t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
C-x C-f
to open the file~/.emacs
and paste that stuff. If windows, you'll likely need to redo the spell stuff. Spelling is a slight nightmare right now on windows.JetBrains Mono can be found here.
It might be worth removing the
set-frame-font
and selecting that through custom.