From b7a98cc788ceaef34b1e1f320ac64402e11b8c02 Mon Sep 17 00:00:00 2001 From: Alexander Graul Date: Tue, 27 Aug 2019 10:50:37 +0200 Subject: [PATCH] Add openSUSE prerequisite instructions These instructions were tested on openSUSE Tumbleweed and openSUSE Leap 15.1. There are some modules left that are not documented yet, but this already improves the sitution for common openSUSE users. --- modules/completion/ivy/README.org | 6 ++++++ modules/email/mu4e/README.org | 31 ++++++++++++++++++++---------- modules/lang/cc/README.org | 6 ++++++ modules/lang/elixir/README.org | 6 ++++++ modules/lang/go/README.org | 23 +++++++++++++--------- modules/lang/haskell/README.org | 12 +++++++++++- modules/lang/javascript/README.org | 6 ++++++ modules/lang/nim/README.org | 13 +++++++++---- modules/lang/php/README.org | 5 +++++ 9 files changed, 84 insertions(+), 24 deletions(-) diff --git a/modules/completion/ivy/README.org b/modules/completion/ivy/README.org index 4f817733e..49f99e929 100644 --- a/modules/completion/ivy/README.org +++ b/modules/completion/ivy/README.org @@ -12,6 +12,7 @@ - [[#install][Install]] - [[#macos][MacOS]] - [[#arch-linux][Arch Linux]] + - [[#opensuse][openSUSE]] - [[#features][Features]] - [[#jump-to-file-project-navigation][Jump-to-file project navigation]] - [[#project-search--replace][Project search & replace]] @@ -90,6 +91,11 @@ brew install ripgrep the_silver_searcher sudo pacman --needed --noconfirm -S ripgrep the_silver_searcher #+END_SRC +*** openSUSE +#+BEGIN_SRC sh :dir /sudo:: +sudo zypper install ripgrep the_silver_searcher +#+END_SRC + * Features Ivy and its ilk are large plugins. Covering everything about them is outside of this documentation's scope, so only Doom-specific Ivy features are listed here: diff --git a/modules/email/mu4e/README.org b/modules/email/mu4e/README.org index 2132fba1d..06c43b859 100644 --- a/modules/email/mu4e/README.org +++ b/modules/email/mu4e/README.org @@ -4,16 +4,18 @@ #+STARTUP: inlineimages * Table of Contents :TOC: -- [[Description][Description]] - - [[Module Flags][Module Flags]] - - [[Plugins][Plugins]] -- [[Prerequisites][Prerequisites]] - - [[MacOS][MacOS]] - - [[Arch Linux][Arch Linux]] -- [[Features][Features]] -- [[Configuration][Configuration]] - - [[offlineimap][offlineimap]] - - [[mbsync][mbsync]] +- [[#description][Description]] + - [[#module-flags][Module Flags]] + - [[#plugins][Plugins]] +- [[#prerequisites][Prerequisites]] + - [[#macos][MacOS]] + - [[#arch-linux][Arch Linux]] + - [[#nixos][NixOS]] + - [[#opensuse][openSUSE]] +- [[#features][Features]] +- [[#configuration][Configuration]] + - [[#offlineimap][offlineimap]] + - [[#mbsync][mbsync]] * Description This module makes Emacs an email client, using ~mu4e~. @@ -66,6 +68,15 @@ environment.systemPackages = with pkgs; [ [[https://github.com/Emiller88/dotfiles/blob/master/modules/shell/mail.nix][An example of setting up mbsync with home-manager]] +** openSUSE + +Remove ~#~ in ~#sync_program=offlineimap~ to choose ~offlineimap~ instead of ~mbsync~. +#+BEGIN_SRC sh :dir /sudo:: +sync_program=isync # mbsync +#sync_program=offlineimap +sudo zypper install maildir-utils $sync_programm +#+END_SRC + * TODO Features * Configuration diff --git a/modules/lang/cc/README.org b/modules/lang/cc/README.org index f965fb24d..c4b846a9f 100644 --- a/modules/lang/cc/README.org +++ b/modules/lang/cc/README.org @@ -11,6 +11,7 @@ - [[#irony-server][irony-server]] - [[#macos][MacOS]] - [[#arch-linux][Arch Linux]] + - [[#opensuse][openSUSE]] - [[#rtags][rtags]] - [[#configure][Configure]] - [[#project-compile-settings][Project compile settings]] @@ -93,6 +94,11 @@ rm -rf irony-mode pacman -S clang cmake #+END_SRC +*** openSUSE +#+BEGIN_SRC sh :dir /sudo:: +sudo zypper install clang cmake +#+END_SRC + ** rtags Code navigation requires an [[https://github.com/Andersbakken/rtags][rtags]] server (~rdm~) installed. This should be available through your OS's package manager. diff --git a/modules/lang/elixir/README.org b/modules/lang/elixir/README.org index 9a6b0aaa0..b20a65e9d 100644 --- a/modules/lang/elixir/README.org +++ b/modules/lang/elixir/README.org @@ -11,6 +11,7 @@ - [[#with-asdf][With ~asdf~]] - [[#arch-linux][Arch Linux]] - [[#gentoo-linux][Gentoo Linux]] + - [[#opensuse][openSUSE]] - [[#features][Features]] * Description @@ -47,6 +48,11 @@ sudo pacman -S elixir #+BEGIN_SRC sh :dir /sudo:: sudo emerge -v dev-lang/elixir #+END_SRC + +*** openSUSE +#+BEGIN_SRC sh :dir /sudo:: +sudo zypper install elixir +#+END_SRC * Features - Code completion (~:completion company~) - Documentation lookup (~:tools lookup~) diff --git a/modules/lang/go/README.org b/modules/lang/go/README.org index 685462917..9b613e53d 100644 --- a/modules/lang/go/README.org +++ b/modules/lang/go/README.org @@ -4,15 +4,15 @@ #+STARTUP: inlineimages * Table of Contents :TOC: -- [[Description][Description]] - - [[Module Flags][Module Flags]] - - [[Plugins][Plugins]] -- [[Prerequisites][Prerequisites]] - - [[Go][Go]] - - [[Dependencies][Dependencies]] -- [[Features][Features]] -- [[Configuration][Configuration]] -- [[Troubleshooting][Troubleshooting]] +- [[#description][Description]] + - [[#module-flags][Module Flags]] + - [[#plugins][Plugins]] +- [[#prerequisites][Prerequisites]] + - [[#go][Go]] + - [[#dependencies][Dependencies]] +- [[#features][Features]] +- [[#configuration][Configuration]] +- [[#troubleshooting][Troubleshooting]] * Description This module adds [[https://golang.org][Go]] support. @@ -51,6 +51,11 @@ brew install go sudo pacman -S go #+END_SRC +*** openSUSE +#+BEGIN_SRC sh :dir /sudo:: +sudo zypper install go +#+END_SRC + ** Dependencies This module requires a valid ~GOPATH~, and the following Go packages: diff --git a/modules/lang/haskell/README.org b/modules/lang/haskell/README.org index 88a4c09b0..9f160ca88 100644 --- a/modules/lang/haskell/README.org +++ b/modules/lang/haskell/README.org @@ -72,7 +72,6 @@ To use Intero, you need =stack=: brew install haskell-stack stack setup #+END_SRC - *** Arch Linux #+BEGIN_SRC sh sudo pacman -S stack @@ -81,6 +80,12 @@ pacaur -S ncurses5-compat-lib stack setup #+END_SRC +*** openSUSE +#+BEGIN_SRC sh :dir /sudo:: +sudo zypper install stack +stack setup +#+END_SRC + ** Cabal To use Dante, you need =cabal= (the haskell package builder) and =ghci= (the compiler, syntax checker & repl): @@ -95,6 +100,11 @@ brew install cabal-install ghc sudo pacman -S cabal-install ghc #+END_SRC +*** openSUSE +#+BEGIN_SRC sh :dir /sudo:: +sudo zypper install cabal-install ghc +#+END_SRC + ** LSP You will need =stack= and =git= installed. diff --git a/modules/lang/javascript/README.org b/modules/lang/javascript/README.org index 7e2f68898..cb1add7ab 100644 --- a/modules/lang/javascript/README.org +++ b/modules/lang/javascript/README.org @@ -10,6 +10,7 @@ - [[#prerequisites][Prerequisites]] - [[#macos][MacOS]] - [[#arch-linux][Arch Linux]] + - [[#opensuse][openSUSE]] - [[#appendix][Appendix]] - [[#commands][Commands]] @@ -56,6 +57,11 @@ brew install node sudo pacman --needed --noconfirm -S nodejs npm #+END_SRC +** openSUSE +#+BEGIN_SRC sh :dir /sudo:: +sudo zypper install nodejs npm +#+END_SRC + * Appendix ** Commands *** JS2-mode diff --git a/modules/lang/nim/README.org b/modules/lang/nim/README.org index bd12a1fc3..67ac7c744 100644 --- a/modules/lang/nim/README.org +++ b/modules/lang/nim/README.org @@ -11,10 +11,10 @@ This module adds [[https://nim-lang.org][Nim]] support to Emacs. + Babel support (~ob-nim~) * Table of Contents :TOC: -- [[Module Flags][Module Flags]] -- [[Prerequisites][Prerequisites]] - - [[Nim][Nim]] -- [[Configuration][Configuration]] +- [[#module-flags][Module Flags]] +- [[#prerequisites][Prerequisites]] + - [[#nim][Nim]] +- [[#configuration][Configuration]] * Module Flags This module provides no flags. @@ -44,4 +44,9 @@ brew install nim sudo pacman --needed --noconfirm -S nim nimble #+END_SRC +*** openSUSE +#+BEGIN_SRC sh :dir /sudo:: +sudo zypper install nim +#+END_SRC + * Configuration diff --git a/modules/lang/php/README.org b/modules/lang/php/README.org index 9c2c87462..458f85c32 100644 --- a/modules/lang/php/README.org +++ b/modules/lang/php/README.org @@ -40,6 +40,11 @@ brew install composer sudo pacman --needed --noconfirm -S php composer # or php53, php54, php55 #+END_SRC +*** openSUSE +#+BEGIN_SRC sh :dir /sudo:: +sudo zypper install php-composer +#+END_SRC + ** Dependencies The features in this module optionally depend on the following php packages: