 (menu-bar-mode -1)
 (tool-bar-mode -1)
 (scroll-bar-mode -1)
-(blink-cursor-mode -1)
 (setq use-dialog-box nil)
 ;; (setq redisplay-dont-pause t)
 (setq ring-bell-function 'ignore)
-
-;; Disable backup/autosave
-(setq make-backup-files nil)
-(setq auto-save-default nil)
-(setq auto-save-list-file-name t)
+;; Set cursor
+;; (setq cursor-type 'bar)
+;; (setq blink-cursor-mode 1)
+;; (setq blink-cursor-interval 0.8)
+
+
+(setq cursor-type 'bar)
+(beacon-mode 1)
+
+;; Scrolling
+(setq scroll-step               1)
+(setq scroll-margin            10)
+(setq scroll-conservatively 10000)
+
+;; Fill column indicator
+(require 'fill-column-indicator)
+(setq-default fill-column 99)
+(setq fci-rule-width 1)
+(setq fci-rule-color "#696969")
+(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))
+(global-fci-mode 1)
+
+;; Powerline
+(setq powerline-default-separator 'slant)
+
+;; Battery
+(add-hook 'after-init-hook #'fancy-battery-mode)
+(fancy-battery-mode 1)
+
+;; Buffers selectin and ibuffer settings
+(require 'bs)
+(require 'ibuffer)
+(defalias 'list-buffers 'ibuffer)
+(global-set-key (kbd "<f2>") 'bs-show)
+
+(setenv "GOPATH" "/home/d_zheleztsov/.local")
 
 ;; Linum plugin
 (require 'linum)

	(unless (server-running-p)
		(server-start)))

;; Perl DE
;; (add-to-list 'load-path "~/.emacs.d/pde")
;; (load "pde-load")

;; Username
(setq user-mail-address	""
	  user-full-name	"")


;; Dired
(require 'dired)
(setq dired-recursive-deletes 'top)

                                 "Июнь" "Июль" "Август" "Сентябрь"
                                 "Октябрь" "Ноябрь" "Декабрь"])

;; golang
;; (add-to-list 'load-path "/usr/share/emacs/site-lisp/golang-mode")
(require 'go-mode)
(require 'go-complete)
(add-hook 'completion-at-point-functions 'go-complete-at-point)


;; Powerline
(require 'powerline)
(powerline-default-theme)

(require 'spaceline-config)
(spaceline-emacs-theme)

;; Short messages
(defalias 'yes-or-no-p 'y-or-n-p)

;; HELM
(require 'helm-config)
(global-set-key (kbd "M-x") 'helm-M-x)
(global-set-key (kbd "C-x r b") #'helm-filtered-bookmarks)
(global-set-key (kbd "C-x C-f") #'helm-find-files)
(helm-mode 1)


(require 'helm-swoop)

;; Change keybinds to whatever you like :)
(global-set-key (kbd "M-i") 'helm-swoop)
(global-set-key (kbd "M-I") 'helm-swoop-back-to-last-point)
(global-set-key (kbd "C-c M-i") 'helm-multi-swoop)
(global-set-key (kbd "C-x M-i") 'helm-multi-swoop-all)

;; When doing isearch, hand the word over to helm-swoop
(define-key isearch-mode-map (kbd "M-i") 'helm-swoop-from-isearch)
(define-key helm-swoop-map (kbd "M-i") 'helm-multi-swoop-all-from-helm-swoop)

;; Save buffer when helm-multi-swoop-edit complete
(setq helm-multi-swoop-edit-save t)

;; If this value is t, split window inside the current window
(setq helm-swoop-split-with-multiple-windows nil)

;; Split direction. 'split-window-vertically or 'split-window-horizontally
(setq helm-swoop-split-direction 'split-window-vertically)

;; If nil, you can slightly boost invoke speed in exchange for text color
(setq helm-swoop-speed-or-color nil)

;; Go to the opposite side of line from the end or beginning of line
(setq helm-swoop-move-to-line-cycle t)

;; Optional face for line numbers
;; Face name is `helm-swoop-line-number-face`
(setq helm-swoop-use-line-number-face t)


;; Yasnippet
(require 'yasnippet)
(yas-global-mode 1)
;; (yas-reload-all)
;; (add-hook 'prog-mode-hook #'yas-minor-mode)

