dotfiles

Settings and scripts
git clone git://git.konyahin.xyz/dotfiles
Log | Files | Refs

dot-emacs (1833B)


      1 ; base settings
      2 (tool-bar-mode 0)
      3 (scroll-bar-mode 0)
      4 
      5 (setq make-backup-files nil)
      6 (setq auto-save-default nil)
      7 
      8 ; dired settings
      9 (add-hook 'dired-mode-hook #'dired-hide-details-mode)
     10 (setq dired-listing-switches "-lp")
     11 
     12 ; settings for packages
     13 (require 'package)
     14 (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
     15 
     16 (require 'markdown-mode)
     17 (add-hook 'markdown-mode-hook 'auto-fill-mode)
     18 (add-hook 'markdown-mode-hook 'flyspell-mode)
     19 (define-key markdown-mode-map (kbd "M-<up>") 'markdown-previous-visible-heading)
     20 (define-key markdown-mode-map (kbd "M-<down>") 'markdown-next-visible-heading)
     21 
     22 (require 'restclient)
     23 
     24 (require 'howm)
     25 (setq howm-file-name-format "%Y-%m-%d-%H%M%S.md")
     26 (setq howm-template "# %title%cursor\n\n%file\n\n")
     27 (setq howm-keyword-file (expand-file-name ".howm-keys" howm-directory))
     28 (setq howm-history-file (expand-file-name ".howm-history" howm-directory))
     29 (define-key howm-menu-mode-map "\C-h" nil)
     30 (define-key riffle-summary-mode-map "\C-h" nil)
     31 (define-key howm-view-contents-mode-map "\C-h" nil)
     32 
     33 ; custom functions and key bindings
     34 (defun knh-new-line-below ()
     35   "Insert new line below, without breaking current line"
     36   (interactive)
     37   (end-of-line)
     38   (newline-and-indent))
     39 (global-set-key (kbd "M-RET") 'knh-new-line-below)
     40 
     41 (custom-set-variables
     42  ;; custom-set-variables was added by Custom.
     43  ;; If you edit it by hand, you could mess it up, so be careful.
     44  ;; Your init file should contain only one such instance.
     45  ;; If there is more than one, they won't work right.
     46  '(package-selected-packages '(restclient howm markdown-mode)))
     47 (custom-set-faces
     48  ;; custom-set-faces was added by Custom.
     49  ;; If you edit it by hand, you could mess it up, so be careful.
     50  ;; Your init file should contain only one such instance.
     51  ;; If there is more than one, they won't work right.
     52  )