Merge branch 'master' of https://git.zom.bi/madmaurice/configfiles
This commit is contained in:
commit
9a808da2db
2 changed files with 23 additions and 0 deletions
16
emacs/.emacs
16
emacs/.emacs
|
@ -1,6 +1,11 @@
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
(require 'package)
|
(require 'package)
|
||||||
|
|
||||||
|
;; Nope function
|
||||||
|
(defun nope ()
|
||||||
|
(interactive)
|
||||||
|
(message "Nope!"))
|
||||||
|
|
||||||
;; Quote
|
;; Quote
|
||||||
(setq initial-scratch-message ";; Simplicity and elegance are unpopular because\n;; they require hard work and discipline to achieve\n;; and education to be appreciated.\n;;\n;; - Dijkstra\n\n")
|
(setq initial-scratch-message ";; Simplicity and elegance are unpopular because\n;; they require hard work and discipline to achieve\n;; and education to be appreciated.\n;;\n;; - Dijkstra\n\n")
|
||||||
|
|
||||||
|
@ -17,6 +22,8 @@
|
||||||
(defun silence ()
|
(defun silence ()
|
||||||
(interactive))
|
(interactive))
|
||||||
|
|
||||||
|
;; Disable backup
|
||||||
|
(setq make-backup-files nil)
|
||||||
|
|
||||||
(push '("melpa" . "http://melpa.milkbox.net/packages/") package-archives)
|
(push '("melpa" . "http://melpa.milkbox.net/packages/") package-archives)
|
||||||
|
|
||||||
|
@ -123,6 +130,7 @@
|
||||||
(use-package org
|
(use-package org
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
|
|
||||||
;; Evil-mode
|
;; Evil-mode
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:ensure t
|
:ensure t
|
||||||
|
@ -131,9 +139,17 @@
|
||||||
(evil-mode 1)
|
(evil-mode 1)
|
||||||
(setq evil-ex-substitute-global t)
|
(setq evil-ex-substitute-global t)
|
||||||
(define-key evil-normal-state-map "/" 'swiper)
|
(define-key evil-normal-state-map "/" 'swiper)
|
||||||
|
<<<<<<< HEAD
|
||||||
(define-key evil-motion-state-map [down-mouse-1] 'silence)
|
(define-key evil-motion-state-map [down-mouse-1] 'silence)
|
||||||
(define-key evil-motion-state-map [mouse-1] 'silence)
|
(define-key evil-motion-state-map [mouse-1] 'silence)
|
||||||
(setq-default evil-cross-lines t))
|
(setq-default evil-cross-lines t))
|
||||||
|
=======
|
||||||
|
(setq-default evil-cross-lines t)
|
||||||
|
(define-key evil-insert-state-map (kbd "<up>") 'nope)
|
||||||
|
(define-key evil-insert-state-map (kbd "<left>") 'nope)
|
||||||
|
(define-key evil-insert-state-map (kbd "<right>") 'nope)
|
||||||
|
(define-key evil-insert-state-map (kbd "<down>") 'nope))
|
||||||
|
>>>>>>> 88de92aa599c6c9f35ce00728ce948fcd63e5682
|
||||||
|
|
||||||
;; Auto-Complete
|
;; Auto-Complete
|
||||||
(use-package auto-complete
|
(use-package auto-complete
|
||||||
|
|
|
@ -28,3 +28,10 @@ gitall() {
|
||||||
md5dir() {
|
md5dir() {
|
||||||
find $1 -type f -print0 | xargs -0 md5sum
|
find $1 -type f -print0 | xargs -0 md5sum
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ssh-fingerprint() {
|
||||||
|
SERVER=$1
|
||||||
|
PORT=${2:-22}
|
||||||
|
|
||||||
|
ssh-keygen -lf <(ssh-keyscan -p $PORT $SERVER 2>/dev/null)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue