aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-06-24 13:23:33 +0200
committerOmar Polo <op@omarpolo.com>2021-06-24 13:23:33 +0200
commit2c362f957c25fcd76fa47a249fe1b70c6291b890 (patch)
tree0a303fb3cb8e4b7370e226281c61f61d4278cf9b
parentf2d2d7a162a2dc8ab5737f477fb0c9aab2673566 (diff)
downloadtelescope-2c362f957c25fcd76fa47a249fe1b70c6291b890.tar.gz
telescope-2c362f957c25fcd76fa47a249fe1b70c6291b890.tar.bz2
enable olivetti-mode by default and set fill-mode to 80
-rw-r--r--ChangeLog4
-rw-r--r--defaults.c4
-rw-r--r--telescope.17
3 files changed, 9 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index e6e22f3..2e61536 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-06-24 Omar Polo <op@omarpolo.com>
+
+ * defaults.c: enable olivetti-mode by default and set fill-mode to 80
+
2021-06-23 Omar Polo <op@omarpolo.com>
* gemtext.c (search_title): fixed a bug where the *last* level 2 or 3 heading would be used as tab title instead of the first one.
diff --git a/defaults.c b/defaults.c
index 0201ef3..5104dba 100644
--- a/defaults.c
+++ b/defaults.c
@@ -22,8 +22,8 @@
#include <string.h>
char *new_tab_url = NULL;
-int fill_column = INT_MAX;
-int olivetti_mode = 0;
+int fill_column = 80;
+int olivetti_mode = 1;
int enable_colors = 1;
static struct lineface_descr {
diff --git a/telescope.1 b/telescope.1
index 281e57e..c657ae3 100644
--- a/telescope.1
+++ b/telescope.1
@@ -486,7 +486,7 @@ is not set, 0 otherwise.
.Pq integer
If greater than zero, lines of text will be formatted in a way that
don't exceed the given number of columns.
-By default is -1.
+By default is 80.
.It new-tab-url
.Pq string
URL for the new tab page.
@@ -497,7 +497,7 @@ By default is
Enable
.Ic olivetti-mode
if non zero.
-By default is 0.
+By default is 1.
.El
.It Ic proxy Ar proto Ic via Ar url
Use
@@ -602,8 +602,7 @@ and loaded on startup.
.Sh EXAMPLES
The following is my config file:
.Bd -literal -offset indent
-set fill-column = 72
-set olivetti-mode = 1
+# ignore the NO_COLOR environment variable
set enable-colors = 1
style line.item {