summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorJulian <j@teule.nl>2018-10-29 21:37:23 +0100
committerJulian <j@teule.nl>2018-10-29 21:37:23 +0100
commit6be8e2449c2c5a00cf9a0c94bc5844907ceb84e5 (patch)
treec1ff9c6bb7594b55bfeb1d3403ba43ff21ad0648 /.emacs
parent4e2e2ea2db51075f4269e4b38429c719688aa759 (diff)
Added different things
Diffstat (limited to '.emacs')
-rw-r--r--.emacs154
1 files changed, 0 insertions, 154 deletions
diff --git a/.emacs b/.emacs
index 42e8a5e..a09d55b 100644
--- a/.emacs
+++ b/.emacs
@@ -14,171 +14,17 @@
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
-
-
-(setq org-log-done 'time)
-
-
-(setq-default org-display-custom-times t)
-(setq org-time-stamp-custom-formats '("<%a %e-%b-%Y>" . "<%a %e-%b-%Y %H:%M>"))
-
-;;(setq org-agenda-files '("~/Dropbox/Noter"))
-
-
-
(ac-config-default)
-(add-to-list 'load-path "/some/path/neotree")
-(require 'neotree)
-(global-set-key [f8] 'neotree-toggle)
-
(setq c-default-style "k&r"
c-basic-offset 4)
-;;(add-hook 'c-mode-common-hook '(lambda () (c-toggle-auto-state 1)))
(add-to-list 'auto-mode-alist '("\\.ino\\'" . c++-mode))
-
-(setq backup-directory-alist
- `(("." . ,(concat user-emacs-directory "backups"))))
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;; Custom splitting functions ;;
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
-(defun vsplit-last-buffer ()
- (interactive)
- (split-window-vertically)
- (other-window 1 nil)
- (switch-to-next-buffer)
- )
-(defun hsplit-last-buffer ()
- (interactive)
- (split-window-horizontally)
- (other-window 1 nil)
- (switch-to-next-buffer)
- )
-
-(global-set-key (kbd "C-x 2") 'vsplit-last-buffer)
-(global-set-key (kbd "C-x 3") 'hsplit-last-buffer)
-
-
-(global-set-key (kbd "C-å C-b") 'windmove-left)
-(global-set-key (kbd "C-å C-f") 'windmove-right)
-(global-set-key (kbd "C-å C-p") 'windmove-up)
-(global-set-key (kbd "C-å C-n") 'Windmove-down)
-
-
-(windmove-default-keybindings)
-
-(require 'buffer-move)
-(global-set-key (kbd "<C-S-up>") 'buf-move-up)
-(global-set-key (kbd "<C-S-down>") 'buf-move-down)
-(global-set-key (kbd "<C-S-left>") 'buf-move-left)
-(global-set-key (kbd "<C-S-right>") 'buf-move-right)
-
-
-
-(defun switch-to-last-buffer ()
- (interactive)
- (switch-to-buffer nil))
-
-(global-set-key (kbd "C-<backspace>") 'switch-to-last-buffer)
-
-(defun eval-and-replace ()
- "Replace the preceding sexp with its value."
- (interactive)
- (backward-kill-sexp)
- (condition-case nil
- (prin1 (eval (read (current-kill 0)))
- (current-buffer))
- (error (message "Invalid expression")
- (insert (current-kill 0)))))
-
-(global-set-key (kbd "C-c e") 'eval-and-replace)
-
-
-(require 'iy-go-to-char)
-(global-set-key (kbd "M-m") 'iy-go-to-char)
-
-
-(require 'expand-region)
-(global-set-key (kbd "M-n") 'er/expand-region)
-
-(define-key global-map (kbd "C-c SPC") 'ace-jump-mode)
-
-(require 'multiple-cursors)
-
-(global-set-key (kbd "M-p e") 'mc/edit-lines)
-(global-set-key (kbd "M-p f") 'mc/mark-next-like-this)
-(global-set-key (kbd "M-p b") 'mc/mark-previous-like-this)
-(global-set-key (kbd "M-p h") 'mc/mark-all-like-this)
-
-
-(require 'dashboard)
-(dashboard-setup-startup-hook)
-
-(require 'fortune)
-(setq fortune-dir "/usr/share/games/fortunes")
-(setq fortune-file "/usr/share/games/fortunes/fortunes")
-
-(defun dashboard-fortune (hej)
- (insert "Fortune:\n")
- (insert (with-temp-buffer
- (shell-command "fortune" t)
- (buffer-string)))
- )
-
-
-(add-to-list 'dashboard-item-generators '(custom . dashboard-fortune))
-
-(setq dashboard-items '((recents . 5)
- (bookmarks . 5)
- (custom . 3)
- ))
-
-(show-paren-mode 1)
-
-
-(require 'dired-single)
-
-(defun my-dired-init ()
- "Bunch of stuff to run for dired, either immediately or when it's
- loaded."
- ;; <add other stuff here>
- (define-key dired-mode-map [return] 'dired-single-buffer)
- (define-key dired-mode-map [mouse-1] 'dired-single-buffer-mouse)
- (define-key dired-mode-map "^"
- (function
- (lambda nil (interactive) (dired-single-buffer "..")))))
-
-;; if dired's already loaded, then the keymap will be bound
-(if (boundp 'dired-mode-map)
- ;; we're good to go; just add our bindings
- (my-dired-init)
- ;; it's not loaded yet, so add our bindings to the load-hook
- (add-hook 'dired-load-hook 'my-dired-init))
-
-
-
-(org-babel-do-load-languages
- 'org-babel-load-languages
- '((R . t)
- (emacs-lisp . t)
- (python . t)
- (sh . t)
- (haskell . t)
- (js . t)
- (latex . t)
- (C . t)
- ))
-
(require 'evil)
(evil-mode 1)
(require 'evil-surround)
(global-evil-surround-mode 1)
-(display-time-mode 1)
-(display-battery-mode 1)