]> git.donarmstrong.com Git - bin.git/blobdiff - acro_gene
add mutt alias which executes neomutt if that exists
[bin.git] / acro_gene
index 083dd0ef47eb3ec704b6d7648a2f677f1705ae90..9a6968487f22e3d44f41ee483dcfd196d080f7d3 100755 (executable)
--- a/acro_gene
+++ b/acro_gene
@@ -112,10 +112,13 @@ for (@ARGV) {
         next unless defined $gene;
         $name = $genes{$gene};
     }
+    my $url = 'http://www.genenames.org/cgi-bin/gene_symbol_report?match='.$gene;
     print '\DeclareAcronym{'.
-        $gene.'}{short=\href{http://www.genenames.org/cgi-bin/gene_symbol_report?match='.
-        $gene.'}{'.$gene.'},long={'.$name.
-        '},first-style=reversed}'."\n";
+        $gene.'}{short=\href{'.$url.
+        '}{\textit{'.$gene.'}},long={'.$name.
+        '},first-style=reversed,single={'.
+        '\href{'.$url.'}{\textit{'.$gene.'}} ('.$name.')'.
+        '}}'."\n";
 }