commit 9d0251702ef42ee1cb98d066a81f7b35094ff838 Author: Gerardo Marx Date: Mon Sep 20 12:00:40 2021 -0500 Melpa and which-key diff --git a/.emacs b/.emacs new file mode 100644 index 0000000..37f43c1 --- /dev/null +++ b/.emacs @@ -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. + ) diff --git a/Readme b/Readme new file mode 100644 index 0000000..7ec2309 --- /dev/null +++ b/Readme @@ -0,0 +1,2 @@ +# Emacs basic configuration + diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..7ec2309 --- /dev/null +++ b/Readme.md @@ -0,0 +1,2 @@ +# Emacs basic configuration +