Class: ControlLock

Inherits:
Object show all
Defined in:
lib/xiki/control_lock.rb

Overview

Simple wrapper around control_lock.el to turne it on and off (and handle the case where it’s not) installed.

Class Method Summary collapse

Class Method Details

.disableObject



6
7
8
# File 'lib/xiki/control_lock.rb', line 6

def self.disable
  $el.control_lock_enable if self.enabled?
end

.enabled?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/xiki/control_lock.rb', line 10

def self.enabled?
  $el.boundp(:control_lock_mode_p) and $el.elvar.control_lock_mode_p
end