From b9f1cae88c4132a9ac6f380e026c51843a9f7157 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Mon, 13 May 2019 01:18:30 -0500 Subject: [PATCH] Auto-installs selected packages and added ssh-config-keywords.txt to avoid errors --- .gitignore | 3 +- init.el | 9 +++- ssh-config-keywords.txt | 98 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 3 deletions(-) create mode 100644 ssh-config-keywords.txt diff --git a/.gitignore b/.gitignore index 1a39f26..ab2875f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ !/.gitignore !/.init.el !/custom.el -!/snippets \ No newline at end of file +!/snippets +!/ssh-config-keywords.txt \ No newline at end of file diff --git a/init.el b/init.el index 58c58af..71fddfa 100644 --- a/init.el +++ b/init.el @@ -2,20 +2,25 @@ ;; INSTALL PACKAGES ;; -------------------------------------- + (setq custom-file "~/.emacs.d/custom.el") (load custom-file 'noerror) (require 'package) +(add-to-list 'package-archives + '("melpa" . "https://melpa.org/packages/") t) + (package-initialize) -(unless package-archive-contents +(when (not package-archive-contents) (package-refresh-contents)) -(package-install-selected-packages) (mapc #'(lambda (package) (unless (package-installed-p package) (package-install package))) ;; BASIC + package-selected-packages) + (require 'undo-tree) (global-undo-tree-mode) diff --git a/ssh-config-keywords.txt b/ssh-config-keywords.txt new file mode 100644 index 0000000..347b784 --- /dev/null +++ b/ssh-config-keywords.txt @@ -0,0 +1,98 @@ +AddKeysToAgent +AddressFamily +BadOption +BatchMode +BindAddress +BindInterface +CASignatureAlgorithms +CanonicalDomains +CanonicalizeFallbackLocal +CanonicalizeHostname +CanonicalizeMaxDots +CanonicalizePermittedCNAMEs +CertificateFile +ChallengeResponseAuthentication +CheckHostIP +Cipher +Ciphers +ClearAllForwardings +Compression +CompressionLevel +ConnectTimeout +ConnectionAttempts +ControlMaster +ControlPath +ControlPersist +Deprecated +DynamicForward +EnableSSHKeysign +EscapeChar +ExitOnForwardFailure +FingerprintHash +ForwardAgent +ForwardX +GatewayPorts +GlobalKnownHostsFile +GssAuthentication +GssDelegateCreds +HashKnownHosts +Host +HostKeyAlgorithms +HostKeyAlias +HostName +HostbasedAuthentication +HostbasedKeyTypes +IPQoS +IdentitiesOnly +IdentityAgent +IdentityFile +Ignore +IgnoreUnknown +IgnoredUnknownOption +Include +KbdInteractiveAuthentication +KbdInteractiveDevices +KexAlgorithms +LocalCommand +LocalForward +LogFacility +LogLevel +Macs +Match +NoHostAuthenticationForLocalhost +NumberOfPasswordPrompts +PKCS +PasswordAuthentication +PermitLocalCommand +Port +PreferredAuthentications +ProxyCommand +ProxyJump +ProxyUseFdpass +PubkeyAcceptedKeyTypes +PubkeyAuthentication +RSAAuthentication +RekeyLimit +RemoteCommand +RemoteForward +RequestTTY +RevokedHostKeys +RhostsRSAAuthentication +SendEnv +ServerAliveCountMax +ServerAliveInterval +SetEnv +StreamLocalBindMask +StreamLocalBindUnlink +StrictHostKeyChecking +TCPKeepAlive +Tunnel +TunnelDevice +Unsupported +UpdateHostkeys +UsePrivilegedPort +User +UserKnownHostsFile +VerifyHostKeyDNS +VisualHostKey +XAuthLocation