Elisp gebastel
This commit is contained in:
parent
6ee435a662
commit
7f2af47756
1 changed files with 29 additions and 1 deletions
30
emacs/.emacs
30
emacs/.emacs
|
@ -33,7 +33,7 @@
|
||||||
'(menu-bar-mode nil)
|
'(menu-bar-mode nil)
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
(quote
|
(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)
|
'(scroll-bar-mode nil)
|
||||||
'(tool-bar-mode nil))
|
'(tool-bar-mode nil))
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
|
@ -61,6 +61,9 @@
|
||||||
;; *.tex files are Latex-Files
|
;; *.tex files are Latex-Files
|
||||||
(add-to-list 'auto-mode-alist '("\\.py\\'" . LaTeX-mode))
|
(add-to-list 'auto-mode-alist '("\\.py\\'" . LaTeX-mode))
|
||||||
|
|
||||||
|
;; show parens
|
||||||
|
(show-paren-mode t)
|
||||||
|
|
||||||
;; theme
|
;; theme
|
||||||
(use-package heroku-theme
|
(use-package heroku-theme
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
@ -254,3 +257,28 @@
|
||||||
|
|
||||||
;; Change all prompts to y or n
|
;; Change all prompts to y or n
|
||||||
(fset 'yes-or-no-p 'y-or-n-p)
|
(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)))
|
||||||
|
|
Loading…
Reference in a new issue