Emacs configuration in org-mode.
The following lines in my ~/.emacs.d/init.el
generates another .el
file, which is then loaded by the Emacs daemon on startup.
(require 'org)
(org-babel-load-file
(expand-file-name "emacs.org"
user-emacs-directory))
(setq user-full-name "Berk Ozbalci"
user-mail-address "berkozbalci@gmail.com")
(fset 'yes-or-no-p 'y-or-n-p)
(setq custom-file (make-temp-file ""))
(setq explicit-shell-file-name "/usr/bin/fish")
(require 'evil)
(evil-mode 1)
(require 'evil-snipe)
(evil-snipe-mode 1)
(setq key-chord-two-keys-delay 0.5)
(key-chord-define evil-insert-state-map "jj" 'evil-normal-state)
(key-chord-mode 1)
(set-default-font "Inziu Iosevka J 13")
(add-to-list 'default-frame-alist '(font . "Inziu Iosevka J 13"))
(toggle-scroll-bar -1)
(defun my/disable-scroll-bars (frame)
(modify-frame-parameters frame
'((vertical-scroll-bars . nil)
(horizonal-scroll-bars . nil))))
(add-hook 'after-make-frame-functions 'my/disable-scroll-bars)
(tool-bar-mode -1)
(menu-bar-mode -1)
(load-theme 'leuven t)
(setq-default indent-tabs-mode nil)
(setq tab-width 4)
(electric-pair-mode 1)
(setq-default c-default-style "python"
c-basic-offset 4)
(add-hook 'c-mode-hook (lambda () (interactive) (column-marker-1 80)))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-cb" 'org-iswitchb)
(require 'python)
(setq python-shell-interpreter "ipython")