diff --git a/emacs/.emacs b/emacs/.emacs index 41299ce..be19edc 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -33,7 +33,7 @@ '(menu-bar-mode nil) '(package-selected-packages (quote - (centered-cursor-mode ivy avy heroku-theme auto-complete use-package yasnippet evil-surround org evil-magit magit makefile-runner evil))) + (neotree centered-cursor-mode ivy avy heroku-theme auto-complete use-package yasnippet evil-surround org evil-magit magit makefile-runner evil))) '(scroll-bar-mode nil) '(tool-bar-mode nil)) (custom-set-faces @@ -61,6 +61,9 @@ ;; *.tex files are Latex-Files (add-to-list 'auto-mode-alist '("\\.py\\'" . LaTeX-mode)) +;; show parens +(show-paren-mode t) + ;; theme (use-package heroku-theme :ensure t) @@ -254,3 +257,28 @@ ;; Change all prompts to y or n (fset 'yes-or-no-p 'y-or-n-p) + +;; Comment fun + +;(defun extend-comment () +; (interactive) +; (if (looking-back "//" (line-beginning-position)) +; (progn +; (newline-and-indent) +; (insert "Hallo Welt")) +; (newline-and-indent))) + +;; Show in binary and decimal + +;(defun hex-popup () +; (interactive) +; (let (hexStr p1 p2) +; (save-excursion +; (search-backward-regexp "[^0-9A-Fa-f]" nil t) +; (forward-char) +; (setq p1 (point)) +; (search-forward-regexp "[^0-9A-Fa-f]" nil t) +; (backward-char) +; (setq p2 (point))) +; (setq hexStr (buffer-substring-no-properties p1 p2)) +; (message "The hex number is: '%s' '%d' '%d'" hexStr p1 p2)))