|
|
@ -0,0 +1,43 @@ |
|
|
|
;;; My basic configuration Gerardo Marx 20/Sep/2021 |
|
|
|
;; Ubuntu version |
|
|
|
;;-------- |
|
|
|
;; Melpa repository: |
|
|
|
(require 'package) |
|
|
|
(add-to-list 'package-archives |
|
|
|
'("melpa" . "https://melpa.org/packages/")t) |
|
|
|
(package-initialize) |
|
|
|
;;+++++++++++++ |
|
|
|
;;function to check installed packages: |
|
|
|
(defun is-installed (pack) |
|
|
|
"Check if a package is istalled" |
|
|
|
(unless (package-installed-p pack) |
|
|
|
(package-refresh-contents) |
|
|
|
(package-install pack))) |
|
|
|
;;++++++++++++++++ |
|
|
|
;; Packages used |
|
|
|
;;............... |
|
|
|
;;++++++++++++++ |
|
|
|
;; Helm |
|
|
|
(is-installed '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) |
|
|
|
;;++++++++++++ |
|
|
|
;; which-key |
|
|
|
(is-installed 'which-key) |
|
|
|
(require 'which-key) |
|
|
|
(which-key-mode) |
|
|
|
(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. |
|
|
|
'(package-selected-packages (quote (which-key helm)))) |
|
|
|
(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. |
|
|
|
) |