Skip to content

Instantly share code, notes, and snippets.

@hiqua
Created July 9, 2021 06:59
Show Gist options
  • Save hiqua/cdafcfee79831c1d02a50c3000575566 to your computer and use it in GitHub Desktop.
Save hiqua/cdafcfee79831c1d02a50c3000575566 to your computer and use it in GitHub Desktop.
(setq inhibit-startup-message t)
(tool-bar-mode -1)
; load markdown export from org mode
(eval-after-load "org"
'(require 'ox-md nil t))
; (package-initialize)
; (require 'evil)
; (evil-mode 1)
(global-auto-revert-mode t)
; XXX: to use dead-grave key (to test)
(require 'iso-transl)
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(package-initialize)
;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(use-package try
:ensure t)
(use-package which-key
:ensure t
:config
(which-key-mode))
(use-package org-bullets
:ensure t
:init (add-hook 'org-mode-hook 'org-bullets-mode))
;; whitespace-mode
;; free of trailing whitespace and to use 80-column width, standard indentation
(setq whitespace-style '(trailing lines space-before-tab
indentation space-after-tab)
whitespace-line-column 80)
;; (winner-mode 1)
;; alows easy jumping within a file
;; (use-package avy
;; :ensure t
;; :config
;; (avy-setup-default))
(use-package auto-complete
:ensure t
:init
(progn
(ac-config-default)
(global-auto-complete-mode t)
))
(set-default 'truncate-lines t)
(setq org-ditaa-jar-path "/usr/share/ditaa/ditaa.jar")
;; allow execution of languages, at least calc (in org-mode)
(org-babel-do-load-languages
'org-babel-load-languages '(
(calc . t)
(python . t)
(ditaa . t)
)
)
(setq org-confirm-babel-evaluate nil)
; display inline images, use [[att:FILENAME]] to insert attachments and display them after
(setq org-startup-with-inline-images t)
(require 'org-attach)
(setq org-link-abbrev-alist '(("att" . org-attach-expand-link)))
; Don't insert validate link when exporting to html
(setq org-html-validation-link nil)
(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.
'(org-agenda-files '("~/00_09_meta/01_syncthing/mobile/notes/notes.org"))
'(org-cycle-emulate-tab 'whitestart)
'(package-selected-packages
'(markdown-mode nov which-key use-package try org-bullets color-theme-sanityinc-tomorrow auto-complete)))
(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.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment