Skip to content

Instantly share code, notes, and snippets.

@gerrywastaken
Created September 7, 2021 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerrywastaken/a11ee9c10e7fe3d218fb93e382e7bda5 to your computer and use it in GitHub Desktop.
Save gerrywastaken/a11ee9c10e7fe3d218fb93e382e7bda5 to your computer and use it in GitHub Desktop.
doom emacs settings
;; init.el
;; Needs to be here: https://github.com/hlissner/doom-emacs/issues/401#issuecomment-588502773
;;
;; Sadly it needs to be here as it must be in place before evil is loaded
;; It allows you to go up and down on a wrapped line
(setq evil-respect-visual-line-mode t)
(org
+pretty
+roam2
+pandoc
+hugo) ; organize your plain life in plain text (pretty for adding pretty bullets http://mpas.github.io/posts/2020/10/16/20201016-org-bullets-doom-emacs/)
lsp
;;; config.el
;; Two tabs should be enough for anybody ;)
(setq-default tab-width 2)
(setq-default evil-shift-width 2)
(setq org-cliplink-transport-implementation "curl")
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers-type t)
(setq org-bullets-bullet-list '("\u200b"))
;; everytime bookmark is changed, automatically save it
;; default is to only save on exit (changes are lost on crash!!! I have no idea why that's the default)
(setq bookmark-save-flag 1)
;; Hide hide the characters around *bold* /italics/ _underline_ etc
(setq org-hide-emphasis-markers t)
;; Hide hide the characters around *bold* /italics/ _underline_ etc
(setq org-hide-emphasis-markers t)
;; Allow us to select the thing that's typed
(setq ivy-use-selectable-prompt t)
;; Pretty code blocks
(setq-default prettify-symbols-alist '(("#+BEGIN_SRC " . "_")
("#+END_SRC" . "_")
("#+begin_src " . "_")
("#+end_src" . "_")
(">=" . "≥")
("=>" . "⇨")))
;; Put the doc window for LSP at the bottom (other options are 'top and 'at-point)
(setq lsp-ui-doc-position 'at-bottom)
(map! :leader
(:prefix-map ("d" . "dooms")
:desc "Eval last sexp" "e" #'eval-last-sexp
:desc "Window: Other" "o" #'other-window
:desc "Expand subTree" "t" #'outline-show-subtree
:desc "Hot reload flutter app" "h" #'flutter-reload
:desc "Hot restart flutter app" "H" #'flutter-restart))
(setq org-roam-directory "~/dots/org/roam")
;; Set initial global startup folding
(setq org-startup-folded t)
;; Doom sets the roam buffer to auto open.
;; That's super annoying and most of the time I don't
;; want it. I'll ask if I want it to open.
(setq +org-roam-open-buffer-on-find-file nil)
;; Packages
(package! benchmark-init)
(package! mac-pseudo-daemon)
;; $DOOMDIR/packages.el
(package! org-pandoc-import
:recipe (:host github
:repo "tecosaur/org-pandoc-import"
:files ("*.el" "filters" "preprocessors")))
(package! fish-mode)
(package! ob-async)
;;(package! ob-dart)
;;(package! dart-mode)
;;(package! dart-server)
;; enlarge the current window
(package! zoom)
(package! cheat-sh)
(package! eradio)
(package! command-log-mode
:recipe (:host github
:repo "pierre-rouleau/command-log-mode"
:files ("*.el")))
(package! pandoc-mode)
(package! terraform-doc)
(package! dired-narrow)
(package! org-download)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment