This commit is contained in:
2017-07-05 23:08:52 +02:00
parent d0d5a604e4
commit 2ecb493ff6
2 changed files with 85 additions and 11 deletions

83
.emacs
View File

@@ -1,8 +1,49 @@
(require 'package) (require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (setq package-enable-at-startup nil)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "https://melpa.org/packages/")
("org" . "http://orgmode.org/elpa/")))
(package-initialize) (package-initialize)
;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(setq make-backup-files nil) ;; stop creating those backup~ files
(setq auto-save-default nil) ;; stop creating those #autosave# files
;; ausgewählten Text bei Eingabe löschen
(delete-selection-mode 1)
;; keine "yes-or-no"-Fragen - "y-or-n" reicht aus
(defalias 'yes-or-no-p 'y-or-n-p)
;; Zusammengehörende Klammern hervorheben
(show-paren-mode 1)
;; Text zwischen den Klammern nicht hervorheben
(setq show-paren-style 'parenthesis)
(use-package which-key
:ensure t
:config
(which-key-mode))
; Buffer Menu
(global-set-key (kbd "C-x C-b") 'buffer-menu)
(use-package flycheck
:ensure t
:init
(global-flycheck-mode t))
(require 'xcscope)
(setq ido-enable-flex-matching t)
(setq ido-everywhere t)
(ido-mode 1)
(cscope-setup) (cscope-setup)
;(setq cscope-command-args -R ) ;(setq cscope-command-args -R )
(add-hook 'vhdl-mode-hook (function cscope-minor-mode)) (add-hook 'vhdl-mode-hook (function cscope-minor-mode))
@@ -15,12 +56,16 @@
(require 'cedet) (require 'cedet)
(global-ede-mode t) (global-ede-mode t)
; Make umlauts work ; Make umlauts work
(set-language-environment 'german) (set-language-environment 'german)
(set-terminal-coding-system 'iso-latin-1) (set-terminal-coding-system 'iso-latin-1)
(global-set-key (kbd "C-x C-b") 'buffer-menu) (setq c-default-style "stroustrup"
c-basic-offset 4)
(setq-default c-basic-offset 2
tab-width 2
indent-tabs-mode t)
(defconst knf-c-style (defconst knf-c-style
'((c-basic-offset . 2) '((c-basic-offset . 2)
@@ -46,6 +91,10 @@
(c-add-style "knf" knf-c-style) (c-add-style "knf" knf-c-style)
(setq c-default-style "knf") (setq c-default-style "knf")
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(R . t) (perl . t) (C . t) ))
;; Frame title bar formatting to show full path of file ;; Frame title bar formatting to show full path of file
(setq-default (setq-default
@@ -66,14 +115,30 @@
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
) )
(custom-set-variables (custom-set-variables
'(show-trailing-whitespace t) ;; 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
(which-key use-package s flymake-cppcheck flycheck-elixir flycheck-cython eval-in-repl ecb cppcheck)))
'(show-trailing-whitespace t))
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode)) (add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
(global-set-key "\M-l" '(lambda () (interactive) (insert "@")))
(global-set-key "\M-5" '(lambda () (interactive) (insert "[")))
(global-set-key "\M-6" '(lambda () (interactive) (insert "]")))
(global-set-key "\M-7" '(lambda () (interactive) (insert "|")))
(global-set-key "\M-/" '(lambda () (interactive) (insert "\\")))
(global-set-key "\M-8" '(lambda () (interactive) (insert "{")))
(global-set-key "\M-9" '(lambda () (interactive) (insert "}")))
(global-set-key "\M-n" '(lambda () (interactive) (insert "~")))
; ))))

View File

@@ -1,8 +1,17 @@
[mergetool "meld2way"] [mergetool "meld2way"]
cmd = meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" cmd = meld \"$LOCAL\" \"$REMOTE\"
[mergetool "meld3way"] [mergetool "meld3way"]
cmd = meld --output \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" cmd = meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\"
# cmd = meld --output \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
[merge] [merge]
tool = meld3way
[diff]
tool = meld2way tool = meld2way
[include] [include]
path = ~/.gituser path = ~/.gituser
[color]
ui = auto
[push]
default = simple
[user]
email = mhop@posteo.de