Inserting a row divider/header into org-babel results

2020-01-14 Thread sergio ruiz
Adding a header to the data
===

  I am presenting some simple data here, but the idea is, I would like
  to programatically add a header to the results of an org-babel
  evaluation. Looking at the results from `data_table', I would like to
  intercept the first line so that I can massage it into the preferred
  output. I am just unsure how to insert the header into my output.

  My goal is to be able to generate the "Preferred result"
  programatically.

  Any Ideas?

  Thanks!


Latex Test
~~

Table test here:


  ,
  | rows = (1..5)
  |   columns = (1..5)
  |   results = []
  |   rows.each_with_index do |row|
  | result_row = []
  | columns.each do |column|
  |   result_row << column * row
  | end
  | results << result_row
  |   end
  |   results
  `

   1   2   3   4   5
   2   4   6   8  10
   3   6   9  12  15
   4   8  12  16  20
   5  10  15  20  25


Preferred result


   column 1  column 2  column 3  column 4  column 5
  --
  2 4 6 810
  3 6 91215
  4 8121620
  5101520    25




peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


Re: Accessing properties in code blocks

2020-01-10 Thread sergio ruiz
Ah. I am running the org-mode that came with my emacs. I tried updating it, but 
ran into version problems. I will see if there is another emacs-lisp way to get 
that info.

Thanks!


> On Jan 9, 2020, at 6:26 PM, Mike Gauland  wrote:
> 
> Looking at git, it seems that was introduced in 9.2.

----
peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


Re: Accessing properties in code blocks

2020-01-09 Thread sergio ruiz
I am getting:

eval: Symbol’s function definition is void: org-macro--get-property

I am using:

Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ 
/Applications/Emacs.app/Contents/Resources/lisp/org/)
Mark set

Is this a newer function?

Thanks!



> You can use elisp code to look up the property you want to pass as a variable:
> 
> #+BEGIN_SRC shell :var url=(org-macro--get-property "url" "")
> curl $url
> #+END_SRC
> 
> 


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


Accessing properties in code blocks

2020-01-09 Thread sergio ruiz
I realized this is related to my previous post, but if i could do this, it 
would save alot of work.

I would like to access the values of the properties inside the (shell) code 
block.

Thanks!



* Report section
:PROPERTIES:
:url:  http://www.googole.com
:END:

I'd like to have several sections like this. Each section woudl have different 
values for the same property. They would make different calls to respective 
url. something like

#+BEGIN_SRC shell
curl 
#+END_SRC

where the result of that call woudl be whatever i get from that running curl on 
that url.




peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


[Properties] accessing propreties in text

2020-01-09 Thread sergio ruiz
Is there a way to reference the values of properties, so that at render time, 
the document does something like:

* Opening section
:PROPERTIES:
:section:  test
:time: 1 day
:END:

Is there a way to do something like.. this section is the  section and 
will be done in 



which would render as:

Is there a way to do something like.. this section is the test section and will 
be done in 1 day

Thanks!


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


[org-babel] String interpolation using shell

2020-01-09 Thread sergio ruiz
Hey, all.

I am trying to set a string at the head of the file and use it in different 
places in the file.

Everything works correctly for somethign like ruby, but I am not sure how do do 
this with a shell command.

Just sets the string to the url
#+NAME: url_name
#+BEGIN_SRC ruby
"http://www.google.com";
#+END_SRC

#+RESULTS: url_name
: http://www.google.com

#+BEGIN_SRC ruby :var url_input=url_name
url_input
#+END_SRC

#+RESULTS:
: http://www.google.com

^^ This seems to work fine.

#+BEGIN_SRC shell :var url_input=url_name
  curl url_input
#+END_SRC

#+RESULTS:

^^ This doesn't work. It is trying to use "url_input" in the curl command.

#+BEGIN_SRC shell
  curl {url_input}
#+END_SRC

#+RESULTS:

^^ this doesn't work. It is trying to use "url_input" in the curl command.

Thanks!


peace,
sergio
photographer, journalist, visionary

Public Key: 
https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
@sergio_101@mastodon.social
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101



signature.asc
Description: Message signed with OpenPGP


[O] [export] Markdown - Exporting headings

2017-01-05 Thread sergio ruiz
For some reason, when I export headings under over 2 deep, I get an unexpected  
markdown export. For example:

* First header
** second level
*** Third level
 Fourth level


gives me:

First header


second level


1.  Third level

    1.  Fourth level


ideas?

thanks!



peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


Re: [O] Export org file to pdf: unable to resolve link

2016-02-11 Thread Sergio Bacelar
Yes, that will work but I hoped that the file
 won't need to be changed to be exported to 
pdf. 

Regards,
Sergio Bacelar





[O] Export org file to pdf: unable to resolve link

2016-02-10 Thread Sergio Bacelar
I am trying with no success to export the most important text from Vikas Rawal 
https://github.com/vikasrawal/orgpaper/blob/master/orgpapers.org 
 to pdf via 
LaTeX. I tried C-c C-e l o but I obtain always the error message “Unable to 
resolve link readata-code”. 
This happens because the link readapt-code is not working:


Code block [[readdata-code]] is an example of such a code block. Note
~:results value silent~ switch used in the  ~#+begin_src~ line.

#+BEGIN_SRC org
  ,#+NAME: readdata-code
  ,#+BEGIN_SRC R :results value silent

  read.data("datafile1.csv",sep=",",header=T)->mydata1


  ,#+END_SRC
#+END_SRC

If #+NAME was not inside the SRC block and there was no comma before #+NAME the 
link should work.
Does anyone can help me to export this file to pdf?

[O] How to cite author-date including page number in org-mode?

2016-01-18 Thread Sergio Bacelar
I am using org-ref in org-mode. I want to cite a book like this:

\citep[p. 1445]{Fong:2006}

but I am only getting citep:Fong:2006. How can I include page number?

Re: [O] Hiding checked items in a checkbox list (FR?)

2014-06-01 Thread Sergio Pokrovskij
>>>>> "Al" == Alexis  wrote:

  Al> Sergio Pokrovskij writes:

  >> The next problem is that MobileOrg should respect the preliminary
  >> hiding done before the visit to the shop.  I do not request that it
  >> hide the checked (= bought) items as well (actually I'd prefer it to
  >> leave them checked and visible; but also its hiding-on-the-fly is
  >> quite acceptable).

  Al> Sorry, but i'm not sure i follow. Do you mean something like
  Al> the following example workflow?

  Al> 1. Have list of (say) 10 grocery items in org-mode.

Yes (actually I have about 80 items in my Springpad list; if the
full list consists of mere 10 items, it fits the screen of my
smartphone, and there is no real need to hide the checked items).

  Al> 2. Initially mark all of them as 'unneeded' by checking all
  Al> items with a single command.

Possibly so.  Actually all the performed items get checked as I
buy them, and those which for some reason I could not buy should
preserve their open (unchecked, unimplemented) status.  So
normally I need not perform this step (provided that what I have
checked at the store gets synchronized back to the Big Brother);
but in some infrequent cases it is nice to have such a command
(though I guess it can be easily done with an M-% in emacs).

  Al> 3. Uncheck (say) 3 items that are 'needed'.
  Al> 4. Run org-mobile-push.

Do I have to do it manually every time (more than once)?  Aren't
such files synchronized automatically?

  Al> 5. MobileOrg displays only the 3 'needed' items; the other 7
  Al> checked (i.e. unneeded) items are hidden.

Yes (in fact, normally there are more of them, a dozen at least).

  Al> 6. As items are purchased and checked off the list, they can
  Al>either:
  Al>(a) remain visible; or
  Al>(b) become hidden upon being checked.

  Al> Is that correct?

Yes.  Normally (b) is sufficient for me, because normally I have
just a screenful of interesting items.  But I can imagine that
people who need longer shopping lists (more that one screen of
them) would prefer to have a MobileOrg command to hide the
newly-checked items as well.

-- 
Sergio




[O] Hiding checked items in a checkbox list (FR?)

2014-05-31 Thread Sergio Pokrovskij
Is it possible to hide the checked items?  E.g. I have a long
shopping list of items I regularly buy, but for the current date I
need only a dozen of them.  I'd like to be able to show all the
items; possibly to check all of them; then uncheck the dozen I
currently need; then hide the checked items.

The next problem is that MobileOrg should respect the preliminary
hiding done before the visit to the shop.  I do not request that
it hide the checked (= bought) items as well (actually I'd prefer
it to leave them checked and visible; but also its
hiding-on-the-fly is quite acceptable).

-- 
Sergio




[O] Typeface markup and punctuation

2014-05-04 Thread Sergio Pokrovskij
There is some inconsistency in orgmode's treatment of emphasis
markup when it comes in contact with delimiters.  E.g. the test:

--8<---cut here---start->8---
This is /in italics/.
(This is /in italics/)
"This is /in italics/"
«This is /in italics/»
„This is /in italics/“
“This is /in italics/”
[This is /in italics/]
{This is /in italics/}
--8<---cut here---end--->8---

produces:

--8<---cut here---start->8---

This is in italics.
(This is in italics)
"This is in italics"
«This is /in italics/»
„This is /in italics/“
“This is /in italics/”
[This is in italics/] {This is /in italics}

--8<---cut here---end--->8---

I would expect the behavior exposed by the first 3 lines.

This is
Org version 7.9.3f (GNU Emacs 24.3).

-- 
Sergio




Re: [O] customize agenda time boundaries

2012-01-22 Thread sergio
On 01/23/2012 07:17 AM, Bernt Hansen wrote:

> (setq org-agenda-start-on-weekday nil)
> 
> C-c a a j -3 w

OK, it works. But it's complicated and week was just an example.
How to do the same for 3 days? For one day (show 12 hours before, and 12
after the current moment)?


-- 
sergio.



[O] customize agenda time boundaries

2012-01-22 Thread sergio
Hello.

Is it possible to display a week (for example) in agenda, but not from
Monday till Sunday, but from 3 days ago from today till 3 days forward?

-- 
sergio.



Re: [O] org-float with hours

2012-01-14 Thread sergio
On 01/14/2012 12:05 PM, Michael Brand wrote:

> #+begin_src org
>   , * 15:43 appointment
>   ,   <%%(org-float t 5 2)>
> #+end_src

Thank you!

-- 
sergio.



[O] org-float with hours

2012-01-13 Thread sergio
Hello.

Is it possible to specify "every second Friday of each month at 15:43" date?

-- 
sergio.



[O] about column view

2012-01-05 Thread sergio
Hello.

I'm trying to start use column view and I have problem with links.

When one of properties is a link [[link][desc]] in column view (C-c C-x
C-c) I see it as plain text: [[link][desc]].

In columnview (#+BEGIN: columnview) such links works fine. But all items
in this table has their lever asterisks.


And one more question about inheritance. Is it possible to make
inheritable property, but local to subtree. I've found
org-use-property-inheritance, but it's global.

-- 
sergio.



Re: [O] '=' and highlight

2012-01-03 Thread sergio
On 01/04/2012 01:42 AM, Nick Dokos wrote:

> ...and what does 
> 
>M-x describe-face RET org-code RET
> 
> say?

Face for fixed-width text like code snippets.
...
Foreground: unspecified
...
   Inherit: shadow
...


How org-mode decides, when to use this face?


-- 
sergio.



Re: [O] '=' and highlight

2012-01-03 Thread sergio
On 01/03/2012 11:07 PM, Nick Dokos wrote:


> Look at the "face" property.
face (org-code)


-- 
sergio.



[O] '=' and highlight

2012-01-03 Thread sergio
Hello.

Why org mode highlights this lines with bright text color:

={motion}indent code
==   indent line

?

>From the first '=' till '=='.

-- 
sergio.



Re: [O] fast navigation

2011-12-20 Thread sergio
On 12/20/2011 11:54 AM, Eric Abrahamsen wrote:

I just removed org-mode package. With org-mode from emacs (6.33x) all
works fine. After this I've downloaded and installed org-mode from the
web --- problem comes back.


-- 
sergio.



Re: [O] fast navigation

2011-12-20 Thread sergio
On 12/20/2011 11:54 AM, Eric Abrahamsen wrote:

> the above does not behave that way for me, it does what you're
> expecting it to.
It's strange, may be it's my poorly explanation, or all is clear?
Have you tried to switch ido off? I'm not sure that I'm using it.

> I'm using emacs 24, but I don't see why that would affect this.
I'm using 23.3+1-4 from debian sid, but I also don't believe that it's
emacs problem.

> Also, (require 'ido) is enough to make ido work, including org's use
> of it.
OK, I wrote:
(require 'ido)
(setq org-completion-use-ido t)
in my .emacs.d/init.el. After that I run emacs file.org, press C-c C-j
and I doesn't see any changes with previous configuration.

> I saw in one of your other threads that you're starting with emacs -Q --
> is that true for this problem as well?
1) there was -q
2) it was for debug propose, usually I just run emacs path_to/file.org


-- 
sergio.



Re: [O] fast navigation

2011-12-19 Thread sergio
On 12/19/2011 05:49 AM, Eric Abrahamsen wrote:

> The behavior I see is that I always need to start with a top-level
> heading.
Yes, but I'm talking another problem.

> If you really can't go to b (a top level node), then something is messed
> up.
I can't goto b or it's children when cursor is on b.

> If the problem is just that you can't *start* completion at a
> non-top-level node, then that's the way it's supposed to work.
It doesn't start, but the problem is that goto doesn't work:
when I press
C-c C-j b 
and cursor is not on b I goto b
when after this I press
C-c C-j 
or C-c C-j b 
one again I receive:
Invalid target location
or
Goto (default b/): b [No match]


> What version of org are you using?
% apt-cache policy org-mode
org-mode:
  Installed: 7.8.02-1
  Candidate: 7.8.02-1
  Version table:
 *** 7.8.02-1 0
500 http://ftp.debian.org/debian/ sid/main i386 Packages
100 /var/lib/dpkg/status

> Ido completion should certainly work with that variable set. Have you
> successfully activated ido in other contexts?
May be not. What should I do (read) to test ido?


-- 
sergio.



[O] Bug: org-goto doesn't goto subtree under cursor

2011-12-18 Thread sergio
Hello.

org-goto doesn't goto subtrees under cursor:

* a...
* b...
** d...
* c...

when cursor is on d I can't goto b/d/very/deep/path,
when cursor is on b I can't goto b/very/very/deep/path.

-- 
sergio.



[O] Bug: color loss in org-goto

2011-12-18 Thread sergio
Hello.

For some strange org sructures completions are not highlighted.

This is a strange bug. To reproduce it you need get two files from
attachment and run emacs -q -l test.el test.org. Also you may need add
(require 'org-install) because I have it in /etc/...

After starting emacs press C-c C-j b   and you'll see that
b/e/, b/ee/, b/eee/ are not highlighted to headline color (yellow).

test.org may look strange, but it's part of big real file. I've changed
letters to some garbage and this bug still reproduced. But I can't
delete or insert letters or strings.

I'm using org-mode 7.8.02-1 from debian sid.

-- 
sergio.
* a
* b
** 2
*** s
e
ee
ee
e

ee


*** s
ss
s
s
*** iii
ss


** e

* c
(setq org-goto-interface 'outline-path-completion)



Re: [O] fast navigation

2011-12-18 Thread sergio
On 12/18/2011 07:54 PM, Eric Abrahamsen wrote:

>> But there is a bug. It doesn't complete headline (and doesn't goto if
>> type it manually) which I stay on.

> Yeah, I think it always starts completion from the top level, no
> matter where you are. I wouldn't call it a bug, exactly -- what if you
> wanted to jump from a sublevel up to a top-level heading?
Sorry, and what if I wanted to jump from a sublevel up to a top-level
heading? May be I don't understand something or poorly described the
problem:

* a...
* b...
** d...
* c...

when cursor is on d I can't goto b/d/very/deep/path,
when cursor is on b I can't goto b/very/very/deep/path.

I think it's a bug.


> I also use the ido completion engine for org-related stuff
> (`org-completion-use-ido' set to t), which means that jumping from
> anywhere to anywhere is fairly easy. Maybe give that a shot?
I've seen this variables (org-completion-use-ido and
org-completion-iswitchb) but I haven't noticed any changes when I set
one of them to "t".


-- 
sergio.



Re: [O] reveal only current subtree

2011-12-18 Thread sergio
On 12/18/2011 01:47 PM, Takaaki ISHIKAWA wrote:
> Probably you set the define-key before "(require 'org-install)".
Really I don't have "(require 'org-install)" in my emacs config at all ---
it is in /etc/emacs/site-start.d/50org-mode.el.

But putting (require 'org-install) in ~/.emacs.d/init.el just before
"(define-key org-mode-map ..." doesn't help.

> Anyway, I have verified your new setting, it works well :)
Thank you.


-- 
sergio.



Re: [O] reveal only current subtree

2011-12-18 Thread sergio
On 12/18/2011 09:44 AM, Takaaki ISHIKAWA wrote:

> (define-key org-mode-map (kbd "C-c C-r")
>   '(lambda () (interactive) (org-show-siblings)))

It doesn't work for me: Symbol's value as variable is void: org-mode-map

But I've remade previous mappig:

(add-hook 'org-mode-hook (lambda ()
(local-set-key "\C-c\C-r" 'my-reveal)))
(defun my-reveal (&optional all-siblings)
  (interactive "P")
  (if all-siblings
(org-reveal t)
(org-show-siblings)))

For C-u C-c C-r it does the same as default org-mode --- shows all
hidden siblings, and for C-c C-r --- all siblings of current level.

I hope this will be interested not only for me.

-- 
sergio.



Re: [O] reveal only current subtree

2011-12-17 Thread sergio
On 12/18/2011 05:12 AM, Takaaki ISHIKAWA wrote:

> Type "M-: (org-show-siblings)" and "M-: (org-show-entry)".

Am I right, that for rebind strange (org-reveal) to (org-show-siblings)
I should do:

(add-hook 'org-mode-hook (lambda ()
(local-set-key "\C-c\C-r" (lambda ()
(interactive)
(org-show-siblings)

It works, but may be there are errors which I don't see.

-- 
sergio.



Re: [O] reveal only current subtree

2011-12-17 Thread sergio
On 12/18/2011 05:12 AM, Takaaki ISHIKAWA wrote:


> Please use eval-expression function [*1] for testing.
> Type "M-: (org-show-siblings)" and "M-: (org-show-entry)".

Oh, sorry. Thank you, Takaaki, (org-show-siblings) is exactly what
I want! But could you say, how you've discovered it?

-- 
sergio.



Re: [O] reveal only current subtree

2011-12-17 Thread sergio
On 12/18/2011 04:13 AM, Takaaki ISHIKAWA wrote:

> C-c C-j d/e/g/h
> (org-show-siblings)
> (org-show-entry)

May be you mean
(setq org-show-siblings t)
?
Also there is no org-show-entry variable, may be you mean
(setq org-show-entry-below t)
?

As I say org-show-entry-below is good so I switched it on for org-goto:
(setq org-show-entry-below '((org-goto . t)))
but it has nothing with main problem.

org-show-siblings is also not that I want. It show all siblings of all
expanded levels. And want to change this view:

* a...
* b...
** d...
*** e...
 g...
* h<- cursor is here
- some
- list
* c...

to this:

* a...
* b...
** d...
*** e...
 g...
* hhh...
* hh...
* h<- cursor is here
- some
- list
* ...
* h...
* c...

and not to this:

* a...
* b...
** dd...
** d
*** ee...
*** e
 ggg...
 g
* hhh...
* hh...
* h<- cursor is here
- some
- list
* ...
* h...
 ggg...
 ggg...
** ddd...
* c...


-- 
sergio.



Re: [O] reveal only current subtree

2011-12-17 Thread sergio
On 12/17/2011 09:59 PM, Carsten Dominik wrote:

>> No. I just want to expand 1 level up, not the first lever, i.e. if after
>> jump I see:

> Then you can use C-u -1 TAB

Much better, but I don't want to expand siblings. I mean to change this
view:

>> * a...
>> * b...
>> ** d...
>> *** e...
>>  g...
>> * h<- cursor is here
>> - some
>> - list
>> * c...

>> I want to show all children of "g" headline, "h" siblings.

to this:

* a...
* b...
** d...
*** e...
 g...
* hhh...
* hh...
* h<- cursor is here
- some
- list
* ...
* h...
* c...


-- 
sergio.



Re: [O] reveal only current subtree

2011-12-17 Thread sergio
On 12/17/2011 08:04 PM, Carsten Dominik wrote:

> You can do
> 
>C-u 1 TAB
> 
> to cycle on the level 1 hearing without moving point.

No. I just want to expand 1 level up, not the first lever, i.e. if after
jump I see:

* a...
* b...
** d...
*** e...
 g...
* h<- cursor is here
 - some
 - list
* c...

I want to show all children of "g" headline, "h" siblings.

>   M-x customize-group RET org-reveal-location
I like default goto view, only org-show-entry-below may be interesting
for me.

-- 
sergio.



Re: [O] reveal only current subtree

2011-12-17 Thread sergio
On 12/17/2011 07:24 PM, Takaaki ISHIKAWA wrote:

> How do you jump to subtrees?
C-c C-j b/e/g
with (setq org-goto-interface 'outline-path-completion)
or via agenda.

> Could you give me the detail, I can probably help you.
What details you need?

-- 
sergio.



[O] reveal only current subtree

2011-12-17 Thread sergio
Hello.

Is it possible to reveal only current subtree but entirely?

For example I have following structure:

* a
* b
** d
** e
*** f
*** g
 qwe
 qwe
*** h
*** i
* c

after jump to /b/e/g I see

* a
* b ...
** e ...
*** g ...
* c

the cursor is on g and i can expand it by tab.
And the main question is how to show all children of e without moving
cursor or collapsing (previously expanded) g?

* a
* b ...
** e
*** f
*** g
 qwe
 qwe
*** h
*** i
* c

C-c C-r doesn't show all "brothers" of current subtree.
C-u C-c C-r and C-u C-u C-c C-r shows a lot of redundant.

-- 
sergio.



Re: [O] fast navigation

2011-12-16 Thread sergio
On 12/16/2011 09:42 AM, Eric Abrahamsen wrote:

> What is your `org-goto-interface'? I've got mine set to
> outline-path-completion, and I think it does what you want.

Thank you! That's what I want.

But there is a bug. It doesn't complete headline (and doesn't goto if
type it manually) which I stay on.

For example:

* a
* b
** d
*** e
* c

If cursor is on b I can't goto d and e. If cursor is on d I can't goto
e.

Could anybody confirm this bug. Or it's my wrong config?
Should I report this bug?

-- 
sergio.



Re: [O] update agenda on file modification

2011-12-16 Thread sergio
On 12/16/2011 08:53 AM, Herbert Sitz wrote:

> This has been discussed before and even if performance was not
> a problem there are reasons for not regenerating while you're in
> agenda.

OK. May be are right, and update agenda on buffer save or get used to
update it manually is better, but what are the main reasons not to
update agenda by buffer change (except performance)? Could you give me
a link to that discussion?

> There's a function that will regenerate the agenda after an idle time
> of x seconds: http://orgmode.org/worg/org-hacks.html#sec-1-8-11
I think http://orgmode.org/worg/org-hacks.html#sec-1-8-12 (refresh the
agenda view regularly) is more suitable. I see the only one reason for
regular agenda update --- keep "now" line up to date and run update
every minute. But how to synchronize this with minute start (zero second
of each minute)?

> I assume it could be modified to check for changed files on disk, if you 
> wanted to use that as trigger for regeneration.
Via after-save-hook?

-- 
sergio.



Re: [O] file name prefix in agenda view

2011-12-16 Thread sergio
On 12/16/2011 05:45 AM, Herbert Sitz wrote:

> The first field of agenda lines is actually the 'Category' of the
> heading, which defaults to the filename.

Thank you!

-- 
sergio.



Re: [O] fast navigation

2011-12-15 Thread sergio

> Have a look at org-goto (C-c C-j)

I've seen it. It performs globally search not hierarchy.

-- 
sergio.



[O] fast navigation

2011-12-15 Thread sergio
Hello.

Is it possible to move through org file like cd on filesystem, ie press
special hotkey and then /foo/bar/baz for goto baz headline in such file:

* foo
** bar
*** baz

Is it possible to use completion for such paths (/foo/bar/b)?

-- 
sergio.



[O] update agenda on file modification

2011-12-15 Thread sergio
Hello.

Is it possible to update agenda on .org file modification?

-- 
sergio.



[O] file name prefix in agenda view

2011-12-14 Thread sergio
Hello.

Is it possible to turn of file prefix (file:) in agenda view?
I use the only one file for agenda and don't plan to use more than one.

-- 
sergio.



Re: [O] org-column face

2011-12-14 Thread sergio
On 12/14/2011 06:25 PM, sergio wrote:

> Why org-column has a different font, than default?

I just realized (thank to Nick, who answered personally to me), that if
I write:
(set-face-font 'default "terminus-10")
org-column uses this font, but I want to define default font so:
(setq default-frame-alist '(
...
(font . "terminus-10")
...
))


-- 
sergio.



[O] org-column face

2011-12-14 Thread sergio
Hello.

Why org-column has a different font, than default?
It's event not monospace! (DejaVu Sans in my case (foncofig's default))

OK. I want to set org-column font to same as default font.
How should I do this?

(set-face-font 'org-column (face-font 'default))
Doesn't work, is says: error: Invalid face, org-column

OK, but
(add-hook 'org-mode-hook (lambda ()
   (set-face-font 'org-column (face-font 'default
also doesn't work, without any error.

(add-hook 'org-mode-hook (lambda ()
(set-face-font 'org-column "terminus-10")))
works, but I don't want to write terminus-10 twice in my config.

-- 
sergio.



Re: [O] calendar view

2011-12-08 Thread sergio
On 12/08/2011 01:41 PM, Tassilo Horn wrote:

> For the nice visual overview, just go with calfw.

Thank you.


-- 
sergio.



Re: [O] calendar view

2011-12-08 Thread sergio
On 12/08/2011 11:43 AM, Tassilo Horn wrote:

>> Am I right, that orgmode doesn't have a calendar view
> Only the agenda.
I mean, that agenda can't display month as calendar.


-- 
sergio.



[O] calendar view

2011-12-07 Thread sergio
Hello.

Am I right, that orgmode doesn't have a calendar view and emacs-calfw is
better for this?

-- 
sergio.



[O] newbie questions about ordered list alignment and line truncation

2011-11-25 Thread sergio
Hello.

1) Is it possible to make ordered list right-aligned? (Or why I should
prefer left-aligned ones?)

1.
..
10.
look ugly

01.
..
10.
doesn't work.

2) How to set truncate-lines for org-mode? (Or why I should prefer
default setting)

For normal buffers truncate-lines is nil. This is a default value and it
works. Moreover setq-default affects on normal buffers.
Bug org-mode truncates long lines by default and don't listen
truncate-lines.

-- 
sergio.



Re: [Orgmode] export to latex..

2009-01-08 Thread sergio

For example:  did you upgrade today?


no upgrades on anything..



What is your current version?


current version: 6.12a


Do you have a small example file which does already reproduce the  
problem?




here is a file called test.org that i tried to export:

 test.org 
* This is a heading
and some text

1 this
  that
  the other

1. a point.
2. another point.


 end file 

__
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] export to latex dumps...

2008-12-06 Thread sergio


not sure if this is a latex problem, or an org mode problem, but as of  
last night, i am having a problem exporting to latex..


i have tried it in carbon emacs and aquamacs, and when i export, it  
will go through the normal export, and then it will die at:


"loading tabify..."

and ideas?

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] latex page size..

2008-12-04 Thread sergio


On Dec 4, 2008, at 10:14 AM, Sebastian Rose wrote:


does
http://lists.gnu.org/archive/html/emacs-orgmode/2008-08/msg00044.html
help?




awesome.. trying an abbreviated version of this out..

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] quickly adding files to agenda..

2008-12-04 Thread sergio


On Dec 4, 2008, at 10:09 AM, Sullivan, Gregory (US SSA) wrote:


http://article.gmane.org/gmane.emacs.orgmode/8992/match=sullivan

illustrates the use of 'find-lisp-find-file'



i am not good at lisp at all, but i have it slated to learn over  
christmas..


but..

here's what i am doing in my .emacs file.. then evaluating each  
command to test:


(load-library "find-lisp") <- this works ..

(find-lisp-find-files "~/orgfiles" "\.org") <- just for testing. when  
i run it, it spits out a list of my org files..


now, i am not sure how to phrase this:

to make org-agenda see the whole thing..

any ideas?

thanks so much!
___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] latex page size..

2008-12-04 Thread sergio


i am currently exporting to latex and printing my files, but am having  
problems with the paper size defaulting to a4.


i have searched around, and can't seem to find where this is set in  
org-mode..


i ran texconfig, and changed the paper size to letter, but my exports  
are still in a4.


also, is it possible to throttle the table of contents through org  
mode? while it is good for some documents, for the greater part of my  
documents, it's not so useful..


thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] quickly adding files to agenda..

2008-12-04 Thread sergio


i am having an issue with aquamacs right now that is forcing me to  
rebuild my agenda list every time i restart emacs..


this is probably a more generally emacs question, but i thought this  
list might be a good place to start..


i have all my org files in a directory called 'orgfiles'...

what i would like to do is mark all my files in dired or something  
similar, then crank them all through C-c [ .


right now, i have to open each file and C-c [ it..

any ideas?

___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] losing my agenda status..

2008-11-18 Thread sergio

With the normal Org-mode setup, the list of agenda files
is kept in the variable `org-agenda-files'.  This variable
is stored, depending on setup, in your .emacs file
or a .custom file, wherever the custom settings are stored.



i have looked at this a bit more last night, and i don't think that  
it's an org-mode problem..


it looks like these files are in a custom file somewhere. i am finding  
that alot of times, my customizations are not being saved when i  
restart emacs, even when i make sure to save all customizations..


since this is not an org-mode issue (now that i get more clues) i will  
take this question to another list..


thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] losing my agenda status..

2008-11-17 Thread sergio


a quick gush.. i have finally moved my whole live over to org mode  
from tracks and planner.el. and i am very much happier. my whole life  
revolves around  millions of notes.. and this allowed me to be way  
more free form..


that being said..

i set up a git repository to keep my org files.. that way i can work  
on them from both my laptop and my desktop computer..


everything works great.. except..

when i pull changes, it looks like the files list that is on my agenda  
list is cleared..


when i run agenda, i get a blank agenda until i manually go in and add  
all the files back to the list..


am i missing something?

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] agenda view - no items listed - problem solved..

2008-11-13 Thread sergio


i hate to but folks on the list about my problems, but i wanted to get  
his down somewhere because i am SURE that someone else is gonna have  
the same problem..


here's the scoop...

i got all my org files all set up and running with the org-mode that  
came with aquamacs (5.something..)


i ran this for a good amount of days, then decided to upgrade to the  
latest via git.


the problem was..

once i upgraded, my org files were no longer associated with the  
agenda..


i manually went in, and C-c [ them back into the agenda..

like i said.. someone else is going to run into the same problem..  
this very week, i bet... so i thought i might post it..


thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] update to the new org mode..

2008-11-13 Thread sergio


On Nov 13, 2008, at 11:23 AM, Sebastian Rose wrote:


there is a menuitem in emacs, that might help:

Options -> 'Enter debugger on error'




here is some more interesting info..

this happens with auqumacs..

i also tried it with the command line version of emacs that comes with  
mac..


i also tried it on emacs on my linux box..

and i get the same thing..

digging around more..


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] update to the new org mode..

2008-11-13 Thread sergio


On Nov 13, 2008, at 10:13 AM, Carsten Dominik wrote:

I believe this happens if the agenda construction is interrupted by  
an error, of if you have a bug in your font setup.



i am not seeing any errors in *messages* when i run agenda..

i did add the following line:

 (global-font-lock-mode 1) ; for all buffers

digging into this more..


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] update to the new org mode..

2008-11-13 Thread sergio



for some reason, my agenda is not showing up as expected.. rather than  
my list of tasks, i am getting:


Week-agenda (W46):
Monday 10 November 2008 W46
Tuesday11 November 2008
Wednesday  12 November 2008
Thursday   13 November 2008
Friday 14 November 2008
Saturday   15 November 2008
Sunday 16 November 2008


where the weekend dates are bold..

did i miss something?

thanks!



___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] mac email task

2008-11-13 Thread sergio


okay, i am getting this:

Invalid function: Emailtask

when i try to load up this:

(setq load-path (cons "~/elisp/org-mode/lisp" load-path))
(require 'org-mac-message)
("Emailtask" 101 "* TODO %?\n  %(org-mac-message-get-link)" "~/ 
orgfiles/gtd.org" "Tasks" nil)


am i doing it wrong?

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] A more generic Effort property?

2008-11-13 Thread sergio


On Nov 12, 2008, at 6:14 PM, Carsten Dominik wrote:


yes. Yes. YES!!!  HUGE differences.




i am running aquamacs emacs..

can i just insert the correct lines into my .emacs folder to load the  
new one and forsake the old one?



___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] how-to? - show only 1 tag for 1 day..

2008-11-13 Thread sergio


when i view an agenda, sometimes it is much easier for me to view only  
one tag for one day..


for instance..

before i run out to lunch, i would like to have a list that only shows  
errands for today..


i can do this, but it shows all errands for the whole week..

can i narrow this down?

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.coffee-black.com



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] how-to? - show only 1 tag for 1 day..

2008-11-13 Thread sergio


when i view an agenda, sometimes it is much easier for me to view only  
one tag for one day..


for instance..

before i run out to lunch, i would like to have a list that only shows  
errands for today..


i can do this, but it shows all errands for the whole week..

can i narrow this down?

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.coffee-black.com



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: crossing out done items

2008-11-12 Thread sergio


I personally find that colouring the keywords is sufficient.  Check  
out

org-todo-keyword-faces.



hi bernt..

unfortunately, i am colorblind...

so fiddling with colors is still really hard for me to differentiate..

a cross out is easy for me to see..


I too am a planner convert (but I moved to org years ago).  I don't  
miss

the overstrike stuff at all :)




i REALLY like org so far..

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] crossing out done items

2008-11-12 Thread sergio



just move point on the 'DONE' and do a

M-x customize-face RET




got it..

this works perfectly..

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] linking to an email..

2008-11-12 Thread sergio


in the google movie, the presenter did a REALLY cool trick where he  
linked an org file to an email in mail.app..


part of me would like to use gnus (does anyone on here use gnus for  
email?)..


but being able to link directly to a mail.app message would be VERY  
nice..


can someone give me some ointers on how they did this?

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] crossing out done items

2008-11-12 Thread sergio


i have JUST switched over from planner-el, and i am thinking that i  
REALLY like it..


the thing that i kinda miss is how planner-el would cross out and dim  
todo items that were done. i really liked that..


maybe i just gotta get used to not having it..

but i was wondering if anyone else liked that and did something in org- 
mode that simulates it.


thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] A more generic Effort property?

2008-11-12 Thread sergio


On Nov 12, 2008, at 10:41 AM, Inanna Underhill wrote:


I am really enjoying upgrading from 5.23 to 6.11, especially the new




speaking of upgrading..

i am currently running 5.23a.. it came with aquamacs.

should i upgrade to the most current version?

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] how-to? - show only 1 tag for 1 day..

2008-11-12 Thread sergio
when i view an agenda, sometimes it is much easier for me to view only  
one tag for one day..


for instance..

before i run out to lunch, i would like to have a list that only shows  
errands for today..


i can do this, but it shows all errands for the whole week..

can i narrow this down?

thanks!
___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] how-to? - email this page

2008-11-12 Thread sergio


i have JUST moved to org mode last night from planner mode after  
watching the video an reading a few articles.. so far, i REALLY like  
it because my life revolves around free form notes..


one thing i would REALLY like to be able to do is email a page  
directly from emacs..


for instance.. my errands page.. it would be great to quickly email it  
to my blackberry..


any ideas?

thanks!


___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] noob-installation

2007-01-16 Thread Sergio Dominguez
Carsten,

Spot on. That is exactly what I did, could have never imagined it wouldn't be 
the right ASCII character. Now it is working.

Sergio


El 15 de Jan de 2007, sobre las 05:30, Carsten Dominik escribia...
> This probably happens because you used copy and paste to copy
> the installation code from the *pdf* file.  For some stupid reason,
> the single quote in such a copy operation is not the correct ASCII
> quote, but some non-ascii character.  Delete all those single quotes,
> and type them in by hand.
> 
> - Carsten
> 
> On Jan 15, 2007, at 13:11, Sergio Dominguez wrote:
> 
> >Hi all, I'm new to the list and to emacs-org mode, really looking 
> >forward to geting into it, since it looks quite interesting.
> >
> >However, I do not get to make it start, I have followed all the steps 
> >in the manual and keep on getting:
> >
> >symbol's value as variable is void: 'org-install.
> >
> >I have emacs 21.3.1 and the latest org.mode that I downloaded from the 
> >site just today.
> >
> >Any help would be appreciated!
> >
> >Sergio
> >-- 
> >Don't go to bed with no price on your head.
> > -- Baretta
> >
> >
> >___
> >Emacs-orgmode mailing list
> >Emacs-orgmode@gnu.org
> >http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
> >
> 
> --
> Carsten Dominik
> Sterrenkundig Instituut "Anton Pannekoek"
> Universiteit van Amsterdam
> Kruislaan 403
> NL-1098SJ Amsterdam
> phone: +31 20 525 7477

-- 
Put your trust in those who are worthy.


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: DSPAM [Orgmode] noob-installation

2007-01-15 Thread Sergio Dominguez
Bastien,

Thanks for your reply,

I have all that.

1) org.el + org.elc are copied to 

/usr/share/emacs/site-lisp, which is where all the other .el files are.

2) got it
3) Got it.

yet I get an error when loading emacs.

thanks,


Sergio

El 15 de Jan de 2007, sobre las 03:14, Bastien escribia...
> Sergio Dominguez <[EMAIL PROTECTED]> writes:
> 
> > However, I do not get to make it start, I have followed all the steps
> > in the manual and keep on getting:
> >
> > Symbol's value as variable is void: 'org-install.
> 
> 1. Make sure you add the directory containing org to the load-path.
>For example, my org directory is "~/elisp/testing/org/", so the
>load-path is :
> 
>(add-to-list 'load-path "~/elisp/testing/org/")
> 
> 2. Make sure Org-Mode is called when finding any .org file:
> 
>(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> 
> 3. Then require the org-install library: 
> 
>(require 'org-install)
> 
> Hope this helps,
> 
> -- 
> Bastien
> 
> 
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
I just remembered something about a TOAD!


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] noob-installation

2007-01-15 Thread Sergio Dominguez
Hi all, I'm new to the list and to emacs-org mode, really looking forward to 
geting into it, since it looks quite interesting.

However, I do not get to make it start, I have followed all the steps in the 
manual and keep on getting:

symbol's value as variable is void: 'org-install.

I have emacs 21.3.1 and the latest org.mode that I downloaded from the site 
just today.

Any help would be appreciated!

Sergio
-- 
Don't go to bed with no price on your head.
-- Baretta


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode