emacs.d

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

commit 83fb43ef44a56a8ca0d50f70be6f6c78721f57d4
parent 065fdef46511ff99fd4fd4c08d3baafb3f544acf
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 24 Feb 2020 15:46:21 +0300

seperate packages and loads

Diffstat:
Minit.el | 66------------------------------------------------------------------
Alisp.d/10-format.el | 4++++
Alisp.d/20-extra.el | 15+++++++++++++++
Alisp.d/20-flycheck.el | 7+++++++
Alisp.d/20-magit.el | 7+++++++
Alisp.d/20-orgmode.el | 23+++++++++++++++++++++++
Alisp.d/20-yasnippet.el | 10++++++++++
Alisp.d/30-dired.el | 4++++
Rlisp.d/10-filetype.el -> lisp.d/40-filetype.el | 0
Alisp.d/99-settings.el | 10++++++++++
10 files changed, 80 insertions(+), 66 deletions(-)

diff --git a/init.el b/init.el @@ -1,24 +1,6 @@ ;;; 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) ;; Magit bindings (global-set-key (kbd "C-x g") 'magit-status) @@ -45,54 +27,6 @@ :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-format.el b/lisp.d/10-format.el @@ -0,0 +1,4 @@ +;; Indentation +(setq-default indent-tabs-mode nil + tab-width 8 + fill-column 80) diff --git a/lisp.d/20-extra.el b/lisp.d/20-extra.el @@ -0,0 +1,15 @@ +;; Extra packages + +(use-package sudo-edit :ensure t) +(use-package aggressive-indent :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)) diff --git a/lisp.d/20-flycheck.el b/lisp.d/20-flycheck.el @@ -0,0 +1,7 @@ +;; Flycheck +(use-package flycheck + :ensure t + :config + (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc)) + :init (global-flycheck-mode)) + diff --git a/lisp.d/20-magit.el b/lisp.d/20-magit.el @@ -0,0 +1,7 @@ +;; Magit + +(use-package magit :ensure t) + +;; Magit bindings +(global-set-key (kbd "C-x g") 'magit-status) + diff --git a/lisp.d/20-orgmode.el b/lisp.d/20-orgmode.el @@ -0,0 +1,23 @@ +;;orgmode.el + +(use-package org :ensure t) + +;; Options +;; (defvar org-directory) +;; (defvar org-mobile-directory) +;; (defvar org-mobile-inbox-for-pull) +;; (defvar org-default-notes-file) +;;(list 'org-agenda-files) +(setq org-directory "~/.org/") +(setq org-mobile-inbox-for-pull "~/.org/inbox.org") +(setq org-mobile-directory "~/orgmode/") + +(add-to-list 'org-agenda-files + '"/home/cem/.notes.org") + +(setq org-default-notes-file "~/.notes.org") + +;; Keybindings +(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) diff --git a/lisp.d/20-yasnippet.el b/lisp.d/20-yasnippet.el @@ -0,0 +1,10 @@ +(use-package yasnippet + :disabled + :config + (yas-global-mode)) + +(use-package yasnippet-snippets + :ensure yasnippet + :after yasnippet + :ensure t ) + diff --git a/lisp.d/30-dired.el b/lisp.d/30-dired.el @@ -0,0 +1,4 @@ +;; Dired +(defvar dired-use-ls-dired) +(setq dired-use-ls-dired nil) + diff --git a/lisp.d/10-filetype.el b/lisp.d/40-filetype.el diff --git a/lisp.d/99-settings.el b/lisp.d/99-settings.el @@ -0,0 +1,10 @@ +;; Disable the clutter +(menu-bar-mode 0) +; (tool-bar-mode 0) +(scroll-bar-mode 0) + +;; Remove custom-file +(setq custom-file "/dev/null") + +;; Backup options +(setq backup-directory-alist `(("." . "~/.cache/emacs/saves")))