This commit is contained in:
2017-07-07 14:03:49 +02:00
parent b2115161f6
commit 4c79c57bc7
2 changed files with 65 additions and 19 deletions

66
.emacs
View File

@@ -1,3 +1,4 @@
;;; mh.emacs --- Summary
(require 'package)
@@ -22,7 +23,7 @@
;; keine "yes-or-no"-Fragen - "y-or-n" reicht aus
(defalias 'yes-or-no-p 'y-or-n-p)
;; Zusammengehörende Klammern hervorheben
;; Zusammengehoerende Klammern hervorheben
(show-paren-mode 1)
;; Text zwischen den Klammern nicht hervorheben
(setq show-paren-style 'parenthesis)
@@ -60,12 +61,6 @@
(set-language-environment 'german)
(set-terminal-coding-system 'iso-latin-1)
(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
'((c-basic-offset . 2)
@@ -89,7 +84,14 @@
"BSD KNF")
(c-add-style "knf" knf-c-style)
(setq c-default-style "knf")
;;(setq c-default-style "knf")
(setq c-default-style "linux"
c-basic-offset 2)
(setq-default c-basic-offset 2
tab-width 2
indent-tabs-mode t)
(org-babel-do-load-languages
'org-babel-load-languages
@@ -112,20 +114,27 @@
("%b - Dir: " default-directory)))))))
(setq-default indent-tabs-mode t)
(setq tab-width 4)
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
(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.
)
;; ------ Flycheck ------------------
(add-hook 'after-init-hook #'global-flycheck-mode)
(use-package flycheck
:ensure t
:init (global-flycheck-mode))
(flycheck-define-checker vhdl-nvc
"A VHDL syntax checker using nvc."
:command ("nvc" "--message=compact" "-a" source)
:error-patterns ((error line-start (file-name) ":" line ":" column ": error: " (message) line-end))
:modes vhdl-mode)
;; ---------------------------------------------------
(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
(which-key use-package s flymake-cppcheck flycheck-elixir flycheck-cython eval-in-repl ecb cppcheck)))
@@ -142,3 +151,22 @@
(global-set-key "\M-9" '(lambda () (interactive) (insert "}")))
(global-set-key "\M-n" '(lambda () (interactive) (insert "~")))
; ))))
;; ----------------------------------
(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.
)
(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.
'(show-trailing-whitespace t)
'(vhdl-indent-tabs-mode t))

View File

@@ -133,3 +133,21 @@ setw -g clock-mode-style 24
# " windowlist -b
unbind '"'
bind '"' choose-window
set-option -g history-limit 100000
#set-option -g allow-rename off
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'