emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit 265645502041eeb90c597e2a532ec8076e24810a
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 21 Feb 2020 20:28:26 +0300

initial commit

Diffstat:
Ainit.el | 95+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alisp.d/10-filetype.el | 15+++++++++++++++
2 files changed, 110 insertions(+), 0 deletions(-)

diff --git a/init.el b/init.el @@ -0,0 +1,95 @@ +;;; init.el +;;; Cem Keylan + +;;; Options + +;; Disable the toolbar on X +(tool-bar-mode 0) + +;; Org-mode Options +(defvar org-directory) +(defvar org-mobile-directory) +(defvar org-mobile-inbox-for-pull) +(setq org-directory "~/.org/") +(setq org-mobile-inbox-for-pull "~/.org/inbox.org") +(setq org-mobile-directory "~/orgmode/") + +;;; Keybindings +;; Org-Mode bindings +(global-set-key (kbd "C-c l") 'org-store-link) +(global-set-key (kbd "C-c a") 'org-agenda) +(global-set-key (kbd "C-c c") 'org-capture) + +;; Line number binding +(global-set-key (kbd "C-c r") 'linum-relative-mode) + +;; Packages + +(require 'package) +(add-to-list 'package-archives + '("melpa" . "https://melpa.org/packages/")) +(package-initialize) +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + +(use-package evil + :ensure t + :init (evil-mode 1)) + +(use-package evil-surround + :ensure t + :config + (global-evil-surround-mode 1)) + +(use-package flycheck + :ensure t + :config + (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc)) + :init (global-flycheck-mode)) + +(use-package yasnippet + :no-require t + :config + (yas-global-mode)) + +(use-package yasnippet-snippets + :ensure yasnippet + :ensure t ) + +(use-package org :ensure t) +(use-package sudo-edit :ensure t) +(use-package magit :ensure t) + +(use-package company + :ensure t + :init (company-mode)) + +(use-package linum-relative + ;; Use relative numbers but + ;; keep the current line's + ;; absolute number. + :ensure t + :config + (setq linum-relative-current-symbol "") + :init (linum-relative-mode 1)) + +(provide 'init.el) +;;; init.el ends here +(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. + '(package-selected-packages + (quote + (fzf company sudo-edit linum-relative yasnippet-snippets quelpa-use-package pyvenv matrix-client magit flycheck evil-surround)))) +(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. + ) + +(dolist (file (directory-files (expand-file-name "lisp.d" user-emacs-directory) t "\.el$" nil)) + (load file)) diff --git a/lisp.d/10-filetype.el b/lisp.d/10-filetype.el @@ -0,0 +1,15 @@ +;;; filetype.el + +;; Markdown +;; 4 Spaces for indentation +(defvar md-indent-tabs-mode) +(defvar md-tab-width) +(setq md-indent-tabs-mode nil) +(setq md-tab-width 4) + +;; Shell +;; 4 Spaces for indentation +(defvar sh-indent-tabs-mode) +(defvar sh-tab-width) +(setq sh-indent-tabs-mode nil) +(setq sh-tab-width 4)