119 lines
2.9 KiB
EmacsLisp
119 lines
2.9 KiB
EmacsLisp
;;;;;;;;;;;;
|
|
;; PAKETI ;;
|
|
;;;;;;;;;;;;
|
|
|
|
;; Set up package.el to work with MELPA
|
|
(require 'package)
|
|
;; Sekvence n'shiat
|
|
(require 'seq)
|
|
|
|
;; Loudamo melpa paketice
|
|
(add-to-list 'package-archives
|
|
'("melpa" . "https://melpa.org/packages/"))
|
|
|
|
;; Kaj vse naj bo namesceno?
|
|
(setq paketi '(;; Evil mode
|
|
evil
|
|
;; Global undo tree
|
|
undo-tree
|
|
;; Gruvbox tema
|
|
gruvbox-theme
|
|
;; Hemisu tema
|
|
hemisu-theme
|
|
;; Oblikovanje teksta
|
|
editorconfig
|
|
;; PHProgamiranje
|
|
php-mode
|
|
fennel-mode
|
|
;; Projekti
|
|
projectile
|
|
;; Completion
|
|
company
|
|
;; Completion2
|
|
ivy
|
|
;; Iskanje po fajlih
|
|
rg))
|
|
|
|
(setq nema (seq-filter (lambda (p) (not (package-installed-p p))) paketi))
|
|
(when nema
|
|
(package-initialize)
|
|
(package-refresh-contents)
|
|
(dolist (p nema)
|
|
(package-install p)))
|
|
|
|
;;;;;;;;;;
|
|
;; EVIL ;;
|
|
;;;;;;;;;;
|
|
(require 'evil)
|
|
(defvar my-leader-map (make-sparse-keymap)
|
|
"Mapiranje za evil bliznjice (leader trigger)")
|
|
|
|
(define-key evil-normal-state-map (kbd "SPC") my-leader-map)
|
|
(define-key my-leader-map "b" 'list-buffers)
|
|
|
|
;;;;;;;;;;;;;;;;;;;
|
|
;; Custom (tema) ;;
|
|
;;;;;;;;;;;;;;;;;;;
|
|
(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.
|
|
'(custom-safe-themes
|
|
'("7661b762556018a44a29477b84757994d8386d6edee909409fabe0631952dad9" default))
|
|
'(package-selected-packages '(fennel-mode rg ivy company projectile evil))
|
|
'(tool-bar-mode nil))
|
|
(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.
|
|
'(default ((t (:family "Iosevka SS05" :foundry "BE5N" :slant normal :weight semi-bold :height 120 :width normal)))))
|
|
|
|
;;;;;;;;;;;;;;;;
|
|
;; UI cleanup ;;
|
|
;;;;;;;;;;;;;;;;
|
|
|
|
;; Menu bar off
|
|
(menu-bar-mode -1)
|
|
(tool-bar-mode -1)
|
|
|
|
;; No dialog box plx
|
|
(setq use-dialog-box nil)
|
|
|
|
;; Brez ikon zgoraj
|
|
(setq ns-use-proxy-icon nil)
|
|
(setq frame-title-format nil)
|
|
|
|
;; Undo tree
|
|
(global-undo-tree-mode)
|
|
(evil-set-undo-system 'undo-tree)
|
|
|
|
;; Theme
|
|
;;(load-theme 'gruvbox-dark-medium t)
|
|
(load-theme 'hemisu-light t)
|
|
|
|
;;;;;;;;;;
|
|
;; Text ;;
|
|
;;;;;;;;;;
|
|
(setq-default tab-width 2)
|
|
(setq-default indent-tabs-mode nil)
|
|
(display-line-numbers-mode)
|
|
(editorconfig-mode 1)
|
|
|
|
;; Evil mode <3
|
|
(evil-mode)
|
|
|
|
;; PhP ko je treba
|
|
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
|
|
|
|
;; Org tudi kdaj
|
|
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
|
|
|
|
;; Kompletiranje ukazov
|
|
(company-mode)
|
|
(ivy-mode)
|
|
|
|
;; Iskanje po fajlih (fulltext)
|
|
(rg-enable-default-bindings)
|