title: How to add keyboard shortcuts permanently to Jupyter (ipython) notebook?
body: <p>I have the following configuration for shortcuts, that works after running it in the cell of Jupiter notebook:</p>
  
  <pre><code>%%javascript
  
  
  IPython.keyboard_manager.command_shortcuts.add_shortcut('ctrl-q', {
      help: 'Clear all output',               // This text will show up on the help page (CTRL-M h or ESC h)
      handler: function (event) {             // Function that gets invoked
          if (IPython.notebook.mode == 'command') {
              IPython.notebook.clear_all_output();
              return false;
          }
          return true;                   
      }
    });
  </code></pre>
  
  <p>How can I setup Jupiter notebook to make this initialization automatically on startup?</p>
  
  <p>I tried adding the same code (without <code>%%javascript</code>) to <code>C:\Users\&lt;username&gt;\.ipython\profile_default\static\custom\custom.js</code> but it didn't work.</p>
  
  <p>I have only one profile, created with <code>ipython profile create</code>, Python 3.3, Windows 7. </p>
  
  <p>Thanks in advance.</p>