Formatação da LICENSE e comentários

This commit is contained in:
aabm 2020-08-21 12:26:40 -03:00
parent ba3c7f6326
commit b810b0b4b2
4 changed files with 113 additions and 111 deletions

View File

@ -22,7 +22,7 @@ git clone https://git.snopyta.org/aabm/emacs-humanities ~/.emacs.d
** Instalação manual sem git
Para instalar sem o =git=, baixe o .zip ou .tar.gz do repositório e extraia tudo para o diretório =~/.emacs.d=.
Para instalar sem o =git=, baixe o .zip ou .tar.gz do repositório e extraia tudo para o diretório =~/.emacs.d=, depois inicie o Emacs. Os pacotes da configuração serão instalados automaticamente.
* Por onde começar

View File

@ -27,29 +27,33 @@ como quiser e adicionar o que quiser.
- Código em R pode ser incluído em documentos org e exportado para PDFs pela compilação de LaTeX
* Licensa
#+begin_src
Copyright © 2020 Aabm <aabm@disroot.org>
#+begin_src emacs-lisp
;;; ------------------------------------------------------------------
;; LICENSE
;; Copyright © 2020 Aabm <aabm@disroot.org>
;; Author: Aabm <aabm@disroot.org>
;; URL: <https://git.snopyta.org/aabm/emacs-humanities/>
Author: Aabm <aabm@disroot.org>
URL: https://git.snopyta.org/aabm/emacs-humanities/
;; This file is not part of GNU Emacs.
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation, either version 3 of the
;; License, or (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program, see the file LICENSE. If not, see
;; <http://www.gnu.org/licenses/>
This file is NOT part of GNU Emacs.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Emacs; see the file LICENSE. If not, you can visit
https://www.gnu.org/licenses/gpl-3.0.html or write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
;; Uma tradução não oficial para português brasileiro da licensa
;; acima pode ser encontrada em:
;; <http://licencas.softwarelivre.org/gpl-3.0.pt-br.html>
;;; ------------------------------------------------------------------
#+end_src
Uma tradução não oficial para português brasileiro da licensa acima pode ser encontrada em: http://licencas.softwarelivre.org/gpl-3.0.pt-br.html
@ -778,7 +782,7 @@ depois reinicie o Emacs.
(setq doom-gruvbox-dark-variant "hard")
(doom-themes-org-config))
(load-theme 'doom-gruvbox t)
(load-theme 'adwaita t)
#+end_src
** Opções do frame

View File

@ -1,44 +1,44 @@
;;; LICENSE
;;; Copyright © 2020 Aabm <aabm@disroot.org>
;;; ------------------------------------------------------------------
;; LICENSE
;; Copyright © 2020 Aabm <aabm@disroot.org>
;; Author: Aabm <aabm@disroot.org>
;; URL: <https://git.snopyta.org/aabm/emacs-humanities/>
;;; Author: Aabm <aabm@disroot.org>
;;; URL: https://git.snopyta.org/aabm/emacs-humanities/
;; This file is not part of GNU Emacs.
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation, either version 3 of the
;; License, or (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program, see the file LICENSE. If not, see
;; <http://www.gnu.org/licenses/>
;;; This file is NOT part of GNU Emacs.
;;; This program is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3, or (at your option)
;;; any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Emacs; see the file LICENSE. If not, you can visit
;;; https://www.gnu.org/licenses/gpl-3.0.html or write to the
;;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;;; Boston, MA 02110-1301, USA.
;;; Uma tradução não oficial para português brasileiro da licensa
;;; acima pode ser encontrada em:
;;; http://licencas.softwarelivre.org/gpl-3.0.pt-br.html
;; Uma tradução não oficial para português brasileiro da licensa
;; acima pode ser encontrada em:
;; <http://licencas.softwarelivre.org/gpl-3.0.pt-br.html>
;;; ------------------------------------------------------------------
;;; Este é o arquivo de early-init do Emacs Humanities.
;;; Este é o primeiro arquivo a ser carregado pelo Emacs usando esta
;;; configuração durante a inicialização. O código aqui tem o propósito de
;;; desabilitar recursos não utilizados por esta configuração, com o intuito
;;; de alcançar um tempo de inicialização menor. Após este arquivo, o Emacs
;;; carrega o arquivo init.el. Mais informações sobre toda esta configuração
;;; no arquivo config.org.
;; Este é o primeiro arquivo a ser carregado pelo Emacs usando esta
;; configuração durante a inicialização. O código aqui tem o propósito
;; de desabilitar recursos não utilizados por esta configuração, com o
;; intuito de alcançar um tempo de inicialização menor. Após este
;; arquivo, o Emacs carrega o arquivo init.el. Mais informações sobre
;; toda esta configuração no arquivo config.org.
;;; Opções de garbage collection para inicialização mais rápida
;;; Este código desabilita toda a garbage collection antes da inicialização
;;; aumentando consideravelmente o gasto de memória necessário para o seu início
;;; e então cria hooks que reabilitam a GC após a inicialização do Emacs, para
;;; evitar problemas de estabilidade e desempenho.
;; Este código desabilita toda a garbage collection antes da
;; inicialização aumentando consideravelmente o gasto de memória
;; necessário para o seu início e então cria hooks que reabilitam a GC
;; após a inicialização do Emacs, para evitar problemas de
;; estabilidade e desempenho.
(setq gc-cons-threshold 402653184
gc-cons-percentage 0.6)
@ -56,23 +56,22 @@
(add-hook 'emacs-startup-hook 'startup/reset-gc)
;;; Evitar carregar o gerenciador de pacotes automaticamente.
;;; No Emacs pós versão 27, o gerenciador de pacotes package.el
;;; é carregado automaticamente durante a inicialização.
;;; Aqui evitamos que isso ocorra, e ainda o impedimos de
;;; de automaticamente inserir um certo bloco de código no arquivo de
;;; init.el, o bloco das custom-set-variables.
;; No Emacs pós versão 27, o gerenciador de pacotes package.el
;; é carregado automaticamente durante a inicialização. Aqui evitamos
;; que isso ocorra, e ainda o impedimos de de automaticamente inserir
;; um certo bloco de código no arquivo de init.el, o bloco das
;; custom-set-variables.
(setq package-enable-at-startup nil
package--init-file-ensured t)
;;; Desabilitando recursos gráficos que não serão usados depois
;;; Aqui impedimos as barras de ferramentas e scroll de serem carregadas.
;;; A barra de menu permanece habilitada, pois pode ser útil para iniciantes.
;;; Se quiser desabilitá-la, basta remover os ;; do início da linha abaixo
;;; e reiniciar o Emacs.
;; Aqui impedimos as barras de ferramentas e scroll de serem
;; carregadas. A barra de menu permanece habilitada, pois pode ser
;; útil para iniciantes. Se quiser desabilitá-la, basta remover
;; os ;; do início da linha abaixo e reiniciar o Emacs.
;;(push '(menu-bar-lines . 0) default-frame-alist)
(push '(tool-bar-lines . 0) default-frame-alist)
(push '(vertical-scroll-bars) default-frame-alist)
(set-window-scroll-bars (minibuffer-window) nil nil)
(setq frame-inhibit-implied-resize t)

85
init.el
View File

@ -1,41 +1,40 @@
;;; LICENSE
;;; Copyright © 2020 Aabm <aabm@disroot.org>
;;; ------------------------------------------------------------------
;; LICENSE
;; Copyright © 2020 Aabm <aabm@disroot.org>
;; Author: Aabm <aabm@disroot.org>
;; URL: <https://git.snopyta.org/aabm/emacs-humanities/>
;;; Author: Aabm <aabm@disroot.org>
;;; URL: https://git.snopyta.org/aabm/emacs-humanities/
;; This file is not part of GNU Emacs.
;;
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation, either version 3 of the
;; License, or (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program, see the file LICENSE. If not, see
;; <http://www.gnu.org/licenses/>
;;; This file is NOT part of GNU Emacs.
;;; This program is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3, or (at your option)
;;; any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Emacs; see the file LICENSE. If not, you can visit
;;; https://www.gnu.org/licenses/gpl-3.0.html or write to the
;;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;;; Boston, MA 02110-1301, USA.
;;; Uma tradução não oficial para português brasileiro da licensa
;;; acima pode ser encontrada em:
;;; http://licencas.softwarelivre.org/gpl-3.0.pt-br.html
;; Uma tradução não oficial para português brasileiro da licensa
;; acima pode ser encontrada em:
;; <http://licencas.softwarelivre.org/gpl-3.0.pt-br.html>
;;; ------------------------------------------------------------------
;;; Este é o arquivo de init do Emacs Humanities.
;;; Este é o segundo arquivo a ser carregado pelo Emacs usando esta configuração
;;; durante a inicialização, logo após o early-init.el. O código aqui tem o
;;; objetivo principal de configurar o gerenciador de pacotes e garantir que
;;; todo o código em Lisp seja compilado para bytecode. Mais informações sobre
;;; toda esta configuração no arquivo config.org.
;; Este é o segundo arquivo a ser carregado pelo Emacs usando esta configuração
;; durante a inicialização, logo após o early-init.el. O código aqui tem o
;; objetivo principal de configurar o gerenciador de pacotes e garantir que
;; todo o código em Lisp seja compilado para bytecode. Mais informações sobre
;; toda esta configuração no arquivo config.org.
;;; Configurações iniciais do gerenciador de pacotes do Emacs, o package.el
;;; Aqui carregamos o package.el, depois configuramos os repositórios a
;;; serem usados por ele, e finalmente o inicializamos.
;; Aqui carregamos o package.el, depois configuramos os repositórios a
;; serem usados por ele, e finalmente o inicializamos.
(require 'package)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
@ -43,19 +42,19 @@
(package-initialize)
;;; Instalando o use-package durante a inicialização.
;;; O use-package é um macro para gerenciamento declarativo de pacotes.
;;; Usamos ele para automaticamente instalar e configurar a maioria dos
;;; pacotes aqui utilizados.
;; O use-package é um macro para gerenciamento declarativo de pacotes.
;; Usamos ele para automaticamente instalar e configurar a maioria dos
;; pacotes aqui utilizados.
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(setq use-package-always-defer t)
;;; Auto compilação de Elisp
;;; Este pacote garante que todo o código em Elisp seja compilado para
;;; bytecode antes de ser carregado. Isso faz com que pacotes instalados
;;; e arquivos de configuração do usuário sejam carregados mais rapidamente
;;; em futuras inicializações.
;; Este pacote garante que todo o código em Elisp seja compilado para
;; bytecode antes de ser carregado. Isso faz com que pacotes instalados
;; e arquivos de configuração do usuário sejam carregados mais rapidamente
;; em futuras inicializações.
(setq load-prefer-newer t)
(use-package auto-compile
:ensure t
@ -67,9 +66,9 @@
(when (file-readable-p (concat user-emacs-directory "config.org"))
(org-babel-load-file (concat user-emacs-directory "config.org")))
;;; Inicializa o servidor do Emacs, para uso com links do
;;; emacsclient. Necessário para uso com o org-roam-server.
;; Inicializa o servidor do Emacs, para uso com links do
;; emacsclient. Necessário para uso com o org-roam-server.
(server-start)
;;; Após a primeira inicialização, o Emacs deve adicionar um bloco de
;;; código abaixo. Não é recomendado editar o bloco manualmente.
;; Após a primeira inicialização, o Emacs deve adicionar um bloco de
;; código abaixo. Não é recomendado editar o bloco manualmente.