Skip to content

Instantly share code, notes, and snippets.

@airicbear
Created April 26, 2020 17:23
Show Gist options
  • Save airicbear/f3152a4adee08f3084d0dd46ba4552f1 to your computer and use it in GitHub Desktop.
Save airicbear/f3152a4adee08f3084d0dd46ba4552f1 to your computer and use it in GitHub Desktop.
emacs windows config 2020-04-26
(require 'package)
(require 'org)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
(package-refresh-contents)
;; lualatex preview
(setq org-latex-pdf-process
'("lualatex -shell-escape -interaction nonstopmode %f"
"lualatex -shell-escape -interaction nonstopmode %f"))
(setq luamagick '(luamagick :programs ("lualatex" "magick")
:description "pdf > png"
:message "you need to install lualatex and imagemagick."
:use-xcolor t
:image-input-type "pdf"
:image-output-type "png"
:image-size-adjust (1.0 . 1.0)
:latex-compiler ("lualatex -interaction nonstopmode -output-directory %o %f")
:image-converter ("magick convert -density %D -trim -antialias %f -quality 100 %O")))
(add-to-list 'org-preview-latex-process-alist luamagick)
(setq org-preview-latex-default-process 'luamagick)
;; Org agenda
(setq org-log-done 'time)
;; Fonts
;; (add-to-list 'default-frame-alist
;; '(font . "JetBrains Mono-13"))
;; Tabs
(setq-default indent-tabs-mode nil)
(setq tab-width 2)
(setq indent-line-function 'insert-tab)
(add-hook 'java-mode-hook (lambda ()
(setq c-basic-offset 2
tab-width 2
indent-tabs-mode nil)))
;; School stuff
(setq org-html-checkbox-type 'html)
(load-file "~/school/src/school.el")
(find-file "~/school/src")
;; Prolog mode
(add-to-list 'load-path "~/.emacs.d/site-lisp/prolog/")
(autoload 'run-prolog "prolog" "Start a Prolog sub-process." t)
(autoload 'prolog-mode "prolog" "Major mode for editing prolog programs." t)
(setq prolog-system 'swi) ; prolog-system below for possible values
(setq auto-mode-alist (append '(("\\.pl$" . prolog-mode))
auto-mode-alist))
(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.
'(column-number-mode t)
'(doc-view-ghostscript-program "C:/Program Files/gs/gs9.52/bin/gswin64c.exe")
'(org-latex-packages-alist (quote (("" "tikz" t))))
'(package-selected-packages
(quote
(auctex ediprolog evil-visual-mark-mode julia-repl julia-mode htmlize magit matlab-mode)))
'(size-indication-mode t))
(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.
'(default ((t (:family "JetBrains Mono" :foundry "outline" :slant normal :weight normal :height 129 :width normal)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment